note 29748 added to function.mail
| From: | was at ubermedia dot com dot au | Date: | Mon, 24 Feb 2003 05:20:40 +0000 |
| Subject: | note 29748 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44416@lists.php.net to get a copy of this message | ||
I'd strongly recommend using \r\n if your using a w2k based server, in my experience it has
always worked and as the above message states, better to be safe than sorry.
Do something like the following to strip out those evil characters:
$mailheaders = str_replace("\r", "\n", $mailheaders);
$mailheaders = str_replace("\n\n", "\n", $mailheaders);
$mailheaders = str_replace("\n", "\r\n", $mailheaders);
Cheers.
--
http://www.php.net/manual/en/function.mail.php
http://master.php.net/manage/user-notes.php?action=edit+29748
http://master.php.net/manage/user-notes.php?action=delete+29748
http://master.php.net/manage/user-notes.php?action=reject+29748