note 39572 deleted from function.mail by nlopess
| From: | nlopess@php.net | Date: | Tue, 03 Feb 2004 14:52:10 +0000 |
| Subject: | note 39572 deleted from function.mail by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64594@lists.php.net to get a copy of this message | ||
Note Submitter: net.forevermore@xris
----
I've found that php (or maybe courier) likes to add the $to variables to the headers, so that
if I compose a message:
To: "user" <user@domain.com>
and invoke mail with a $to value of "user@domain.com" the email I receive reads:
To: user@domain.com, "user" <user@domain.com>
To get around this, I've found that you can pass $to in as NULL, and php will parse the To, Cc,
etc. out of the message itself.