note 33666 rejected from function.mail by alindeman
| From: | alindeman@php.net | Date: | Thu, 03 Jul 2003 14:12:48 +0000 |
| Subject: | note 33666 rejected from function.mail by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51447@lists.php.net to get a copy of this message | ||
Note Submitter: ditzhuijsen@hotmail.com
----
If I use
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers .= "From: Birthday Reminder <birthday@example.com>\r\n";
$headers .= "Cc: birthdayarchive@example.com\r\n";
$headers .= "Bcc: birthdaycheck@example.com\r\n";
(example from the php.net site) there are problems with some mail servers (example home.nl and
gmx.net and probably more) that there are empty linus between the header and therefor mail programs
see Conten-type and everything after that as part of the body.
Just removing the \r will fix this problem; so maybe it's an idea to remove this from the
example??
(I don't know whether it also works on windows os)