Php Mail Header problem with Microsoft Outlook
Posted: Thu Mar 06, 2008 7:26 am
Hi,
When I used a header, like the one below, for my Php Mail Function, it worked with all mail accounts like gmail, hotmail etc, but not with Microsoft Outlook.
Theses Headers were the ones given in Php Manual. But After removing the '\r' from the header, It works well with all mails including Microsoft Outlook
The working header is like
I am not sure why it does not work with '\r', If you have come across a similar problem, please share your thoughts on it.
Kind Regards,
JeF
When I used a header, like the one below, for my Php Mail Function, it worked with all mail accounts like gmail, hotmail etc, but not with Microsoft Outlook.
Code: Select all
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: ' .$from."\r\n";The working header is like
Code: Select all
$headers = 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n";
$headers .= 'From: ' .$from."\n";Kind Regards,
JeF