note 37005 added to ref.mail
| From: | Patrice at rn2 dot php dot net | Date: | Thu, 30 Oct 2003 13:27:06 +0000 |
| Subject: | note 37005 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59524@lists.php.net to get a copy of this message | ||
Please be aware that the SendMail() function below (provided by kieran dot huggins at rogers dot
com) may send all mail twice when using qmail.
The mail() function in PHP (at least 4.2.3) has a "To:" parameter and a extraheader
parameter. If you specify a "To:" manually using the extraheaders, it *doesn't*
override the first "To:" parameter. Qmail must then receive two "To:" and send
twice.
Just comment-out the line that adds the "To:" to the extraheaders to make the below script
work.
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37005
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37005&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37005&report=yes
Search -- http://master.php.net/manage/user-notes.php