fixing mail for broken Outlook
| From: | Hank Marquardt | Date: | Wed, 16 Jan 2002 15:51:25 +0000 |
| Subject: | fixing mail for broken Outlook | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-80731@lists.php.net to get a copy of this message | ||
I've got an app that sends emails, not complicated emails, their just
text, the mail text is stored in text files on the server so they can be
edited independant of the code, I've then got a function that reads the
file (using file()) ... iterates the array, chop(), append \r\n and
builds a message.
This text gets sent using mail() -- works great for everything but
Outlook which seems to lose all the line breaks and generally mungs the
formatting to heck. I've tried sending a "Content-type: text/plain;"
header ... doesn't help.
The only thing that keeps me from losing my mind is that I accidently
had the wrong header "Content-type: text/text;" at first and while it
created an attachment in Outlook, the attachemnt was properly formatted.
Anyone else have this problem and solved it?
--
Hank Marquardt <hank@yerpso.net>
http://web.yerpso.net
GPG Id: 2BB5E60C
Fingerprint: D807 61BC FD18 370A AC1D 3EDF 2BF9 8A2D 2BB5 E60C