note 78242 added to function.mail
| From: | Ben at osu1 dot php dot net | Date: | Thu, 04 Oct 2007 06:14:55 +0000 |
| Subject: | note 78242 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131069@lists.php.net to get a copy of this message | ||
There was a comment that
mail("User Name <username@email.com>","Subject Here",$msg,"From:
us@mysite.com");
does not work. I've always used that and never had any issues - from Linux servers. I
don't see how this could be different in IE vs Firefox; I've always gotten the same result
in both. Just tried it on a Windows server and got this as a bounce back:
<User Name <username@email.com>:
x.x.x.x does not like recipient.
Remote host said: 550 Requested action not taken: 550 No such recipient
Giving up on x.x.x.x.
(Details changed to protect the innocent/guilty (for using a Windows server))
Took me a while to find the bounce until I used ini_set('sendmail_from',
'my@account');
So it is probably trying to deliver to "User Name <username" instead of simply
"username".
----
Server IP: 203.220.0.234
Probable Submitter: 210.15.202.115
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/78242
Del: integrated -- https://master.php.net/note/delete/78242/integrated
Del: useless -- https://master.php.net/note/delete/78242/useless
Del: bad code -- https://master.php.net/note/delete/78242/bad+code
Del: spam -- https://master.php.net/note/delete/78242/spam
Del: non-english -- https://master.php.net/note/delete/78242/non-english
Del: in docs -- https://master.php.net/note/delete/78242/in+docs
Del: other reasons-- https://master.php.net/note/delete/78242
Reject -- https://master.php.net/note/reject/78242
Search -- https://master.php.net/manage/user-notes.php