What I am trying to do is create a very simple email newsletter sending script. What I’m trying to do, is have the client write out their newsletter in FCK editor type program that creates a .html page of the newsletter. Then in a php script, I want to send that html as the actual email.
The testing script below prints out the includes html along with the successful message. However, the email that is received just has the number 1 sent.
Can someone help me with a way to send a newsletter that was written as a html page using php mail, please?
My testing scripts looks like this
[CODE]
<?php
$headers = “Content-type: text/htmlrn”;
$message = require($DOCUMENT_ROOT . “/TEST/test/test.html”);
if(mail(“[email protected]”, “Website Feedback”, $message, $headers))
{
$bodyMessage = “Your comments and concerns have been sent. A representative will be in contact with you shortly.<br><br> Thank you!”;
}
else
{
$bodyMessage = “Sorry, your comments have not been sent. Please send an email to [email protected]”;
}
?>
<html><head><body><?php echo $bodyMessage; ?></body></head></html>