Web Hosting Talk







View Full Version : sending HTML with mail() and Outlook receives HTML code


ladraum
05-07-2003, 04:43 PM
im sending HTML mail using the mail() function.
i send the headers like this:

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

but, when some people open it on the outlook, its displays the HTML code, not the page itself:scatter: .

i think it may be a problem with the version of the outlook, but im not sure.

can anyone help me ?

Ladraum

axx2k
05-07-2003, 05:09 PM
drop the first /r, leave the second.

If you have a longer header set, add only /n, leaving /r included in the last line only.

should fix it for you. :)