Hi All,
On my website I have made a newsletter to send out to all the members.
First page is simply a form, the info in whcih then gets passed to a second page that processes the email.
Problem I am having is, i want to send the email in HTML, so that i can do a few bold and underlined bits and pieces. BUT, when i actually send the newsletter (doing it just to myself at this point for testing), the text that is carried forward from the INPUT box on the form from the previous page does not have the "returns" in it. IE: if i type stuff and press return, in the email it simply comes out all on one line.
Now....I can fix this by not sending it as HTML, howeveri lose some of the funtions i want to use (as mentioned above).
If someone could point me in the right direction as to how i can get around this, I would be very greatful.
A sample of the code is below.
// To send HTML mail, you can set the Content-type header. /
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$subject = "Monthly Newsletter";
$to = "";
/ additional headers /
$headers .= "From: Website Letter<admin@website.com>\r\n";
$headers .= "Return-Path: <admin@website.com>\r\n";
$headers .= "Reply-To: <admin@website.com>\r\n";
$headers .= "Bcc: admin@website.com\r\n";
/ and now mail it /
mail($to, $subject, $fullcontent, $headers);
$to, $subject and $headers are obvious. However $fullcontent comes directly from the form on the previous page.
Thanx in advance for any help