problem with mail()/html/outlook
| From: | ryan-php at p11 dot com | Date: | Mon, 04 Feb 2002 20:36:21 +0000 |
| Subject: | problem with mail()/html/outlook | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-83457@lists.php.net to get a copy of this message | ||
I'm trying to send an html email via a php script, but I'm running into a
rather bizarre problem. I can get it to send the email just fine, but when it
is read on windows Outlook (macintosh outlook express are unaffected) clients,
it strips two characters after any '=' signs, so it plays havoc on the html it
tries to send:
<div align="center">
<table width="570" border="0" cellspacing="0"
cellpadding="0">
becomes:
<div align=enter">
<table width=70" border=" cellspacing=" cellpadding=">
Now, I'm sending all the right headers, I think:
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
I've read up on this as much as I can and it works for every other client other
than MS Outlook under Windows. Unfortuantely, that's a rather large percentage
of people that are going to get a foo'd message of mine. I know that there are
certain mime characters like '=2D' that mean certain things, could it be that
i'm not sending the right header and Outlook is interpreting a differnt mime
type, therefore munching lines as it parses them?
Any help would be appreciated,
Ryan C. Creasey
Network Engineer
p11creative