I can't get an HTML document to appear in a email document. All that comes out are the HTML codes. I suspect the problem is in the header so I have included it below. I have cut out the HTML and inserted it in a blank document and it looks fine. I just can't get MS Outlook to display anything more than the header and codes (I have included a snipet of the output as well.)
Any help or ideas would be appreciated.
Phil.
Header:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$myname." <".$myemail.">\r\n";
$headers .= "To: <".$OrderEmail.">, ".$myname." <".$myemail.">\r\n";
$headers .= "Reply-To: ".$myname." <".$myemail.">\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";
mail($OrderEmail, $subject, $mes, $headers);
Sample Output:
Content-type: text/html; charset=iso-8859-1
From: CentricAV <orders@centricav.com>
To: <phil@centricav.com>, CentricAV <orders@centricav.com>
Reply-To: CentricAV <orders@centricav.com>
X-Priority: 1
X-MSMail-Priority: High
X-Mailer: Just My Server
<html><head><title>Show Quote</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><table width="800" border="0" cellspacing="3" cellpadding="1"><tr><td><font color="#000000" size="3" face="Trebuchet MS">...