note 75344 deleted from function.mail by danbrown
| From: | danbrown@php.net | Date: | Sat, 25 Apr 2009 14:59:48 +0000 |
| Subject: | note 75344 deleted from function.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153736@lists.php.net to get a copy of this message | ||
Note Submitter: James Butler
----
Re: "Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA
in the first place, but are parsed by PHP.
As such, the to parameter should not be an address in the form of "Something
<someone@example.com>". The mail command may not parse this properly while talking with
the MTA."
SERVER:
PHP 5.0.4
Fedora Core 4
Apache 2.0
Sendmail 8.13.7
SMTP: localhost
CLIENT:
Windows 98SE
Mozilla Firefox 2.0.0.3
Microsoft Internet Explorer 6.0.2800.1106
COMMAND:
mail("User Name <username@email.com>","Subject Here",$msg,"From:
us@mysite.com");
Using Firefox, no problems with the above command.
Using MSIE, won't send mail "to" address formatted as above.
COMMAND 2:
mail("username@email.com","Subject Here",$msg,"From: us@mysite.com");
Works fine from both clients.
I mention this because it appears there is some interaction between the client and MTA that is
unaccounted for in the above quote from this doc page.