How to put End of Line with PHP - Sendmail ?
Posted on 2008-10-12
I use mail() function of PHP to send mail to GMAIL, YAHOO...
I put <br> for End of Line
But when I view gmail, yahoo mail, The tag <br> is not change, not indicate End of line!
This is the code:
$to = "email@example.com";
$subject = ' Wellcome to sendmail of PHP !';
$message = ' This is line 1';
$message.= ' <br>this is Line 2 ';
$message.= ' <br>this is Line 3 ';
$headers = 'From: firstname.lastname@example.org' . "\r\n".
'Reply-To: email@example.com' . "\r\n";
How can I resolve this problem?
Thanks in advanced!