note 111797 added to function.mail
| From: | ittasks at gmail dot com | Date: | Thu, 28 Mar 2013 20:55:55 +0000 |
| Subject: | note 111797 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194265@lists.php.net to get a copy of this message | ||
When dealing with mail headers "\n" and "\r\n" *sometimes* makes a big
difference.
Once our CentOs servers got re-installed, all headers like:
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; charset=iso-8859-1\r\n";
...
became part of message body instead of headers
I was able to fixed this by replacing "\r\n" with just "\n"
----
Server IP: 69.147.83.199
Probable Submitter: 69.165.158.28
----
Manual Page -- http://php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/111797
Del: integrated -- https://master.php.net/note/delete/111797/integrated
Del: useless -- https://master.php.net/note/delete/111797/useless
Del: bad code -- https://master.php.net/note/delete/111797/bad+code
Del: spam -- https://master.php.net/note/delete/111797/spam
Del: non-english -- https://master.php.net/note/delete/111797/non-english
Del: in docs -- https://master.php.net/note/delete/111797/in+docs
Del: other reasons-- https://master.php.net/note/delete/111797
Reject -- https://master.php.net/note/reject/111797
Search -- https://master.php.net/manage/user-notes.php