note 78242 deleted from function.mail by danbrown

From: Date: Sat, 25 Apr 2009 14:58:30 +0000
Subject: note 78242 deleted from function.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153731@lists.php.net to get a copy of this message
Note Submitter: Ben ---- 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".

« previous php.notes (#153731) next »