csatterwhite
Programmer
- Aug 4, 2010
- 4
Here's the line of code I am using:
The formatting shows up in gmail (as an example) but does not show in Outlook or Mac OS X Entourage.
I am also setting headers like so:
Any ideas?
Code:
$message = <<<EMAIL
<html>
<body>
<h1 style="background:#546D81; color:#ffffff; font-size:14px; padding:10px;">$subject</h1>
<p style="font-size:12px;"><strong>From:</strong> $firstname $lastname</p>
<p style="font-size:12px;"><strong>Sender Email:</strong>$email</p>
<h2 style="font-size:12px;">Comments:</h2>
<p style="font-size:11px;">$comments</p>
</body>
</html>
EMAIL;
The formatting shows up in gmail (as an example) but does not show in Outlook or Mac OS X Entourage.
I am also setting headers like so:
Code:
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
Any ideas?