note 33666 added to function.mail
| From: | ditzhuijsen at hotmail dot com | Date: | Thu, 03 Jul 2003 14:08:05 +0000 |
| Subject: | note 33666 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51446@lists.php.net to get a copy of this message | ||
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)
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33666
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33666&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33666&report=yes