Jump to content

get_file_contents


kev wood

Recommended Posts

i am working on a emailing system where the user is allowed to store images in a database which are displayed onto the newsletter to be sent out.  the system works in a way that the user uploads the images enters the text they want next to the images and then when the preview button is press it takes the user to a page where all the information is displayed.

 

the next step is to send the information out as an email.

 

i have tried to get this working using the get_file_contents function but the email that is sent is blank.  the code i am using looks like this

 

$message = file_get_contents ('http://www.acmeart.co.uk/mercury/broad_prev.php');

 

and i have  aline of code which should send out the information that i want which looks like this

 

mail($contactemail, $subject, $message, $headers);

 

has anyone used this function to perform a task like this before or does anyone no where i am going wrong?

 

any help or pointers in the right direction would be helpful.

Link to comment
Share on other sites

broad_prev.php is the preview page of the newsletter to be sent out.  it holds all the text and the uploaded images which are displayed on the page from a mysql database on a remote server.

 

sorry it took so long to reply i have been ill. >:(

Link to comment
Share on other sites

i have tried to put the code for the code from the broad_prev.php on to the page that is being sent out as the message but as the page has mysql on it to recall images from a remote server database. with the mysql in the page it will not recall the images.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.