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
https://forums.phpfreaks.com/topic/99965-get_file_contents/
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
https://forums.phpfreaks.com/topic/99965-get_file_contents/#findComment-516295
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.