note 71019 added to function.mail
| From: | PeterW at osu1 dot php dot net | Date: | Wed, 08 Nov 2006 16:11:32 +0000 |
| Subject: | note 71019 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119516@lists.php.net to get a copy of this message | ||
I just moved from sendmail to qmail and it took ages to work out why the formatting was wrong. It
looks like it is because imap_8bit puts a carriage-return-linefeed combination at the end of each
line. The solution is to do something like:
$HTMLmessage=str_replace("=\r\n", "=\n", imap_8bit($HTMLmessage));
I don't know if this will still work with sendmail?
----
Server IP: 85.116.0.130
Probable Submitter: 80.168.33.3
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/71019
Del: integrated -- https://master.php.net/note/delete/71019/integrated
Del: useless -- https://master.php.net/note/delete/71019/useless
Del: bad code -- https://master.php.net/note/delete/71019/bad+code
Del: spam -- https://master.php.net/note/delete/71019/spam
Del: non-english -- https://master.php.net/note/delete/71019/non-english
Del: in docs -- https://master.php.net/note/delete/71019/in+docs
Del: other reasons-- https://master.php.net/note/delete/71019
Reject -- https://master.php.net/note/reject/71019
Search -- https://master.php.net/manage/user-notes.php