-
Posts
456 -
Joined
-
Last visited
Never
Posts posted by kev wood
-
-
i need to know if it is possible to send a php page using php as an email newsletter?
i know it is possible to send an html page as a newsletter but i need to know if i can send a page which has mysql on it as a newsletter. i have tried a few different methods (get file contents, fopen, fwrite, fread) and none have has the desired effect. i can get the page to be emailed to the mailing list but the actual email has nothing held in it (just sends blank email).
does anyone know of a way this can be done or if i have got my code wrong. I can post my code if you need to look at it to see what i mean more clearly.
thanks in advance.
-
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.
-
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.
-
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.
php help needed
in PHP Coding Help
Posted
would that not be the same as creating a php page anyway. sorry if that is a stupid question!!