kev wood Posted April 7, 2008 Share Posted April 7, 2008 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. Quote Link to comment Share on other sites More sharing options...
trq Posted April 7, 2008 Share Posted April 7, 2008 Whaty exactly does broad_prev.php output? Quote Link to comment Share on other sites More sharing options...
kev wood Posted April 10, 2008 Author Share Posted April 10, 2008 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. Quote Link to comment Share on other sites More sharing options...
gortron Posted April 10, 2008 Share Posted April 10, 2008 Instead of using file_get_contents() to get the content of broad_prev.php, couldn't you put the PHP code from the broad_prev.php page into the page that has $message=""; ? Quote Link to comment Share on other sites More sharing options...
kev wood Posted April 13, 2008 Author Share Posted April 13, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.