note 75344 added to function.mail
| From: | JamesButler at osu1 dot php dot net | Date: | Thu, 24 May 2007 19:15:56 +0000 |
| Subject: | note 75344 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126877@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.39.81.135
Probable Submitter: 206.135.122.57
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/75344
Del: integrated -- https://master.php.net/note/delete/75344/integrated
Del: useless -- https://master.php.net/note/delete/75344/useless
Del: bad code -- https://master.php.net/note/delete/75344/bad+code
Del: spam -- https://master.php.net/note/delete/75344/spam
Del: non-english -- https://master.php.net/note/delete/75344/non-english
Del: in docs -- https://master.php.net/note/delete/75344/in+docs
Del: other reasons-- https://master.php.net/note/delete/75344
Reject -- https://master.php.net/note/reject/75344
Search -- https://master.php.net/manage/user-notes.php