|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1999-12-21 15:43 UTC] maarten at nl dot linux dot org
This works: mail("maarten", "subj", "body","From: someone <someone@domain.com>");
This doesn't: mail("maarten", "subj", "body","From: some.one <someone@domain.com>");
Note the dot in the 2nd line. The error message my MTA gives me:The following annotated headers illustrate where the error(s) occurred:
Error in "From" header address:
some.one<someone@domain.com>
^-missing end of mailbox
Apparently, mail() leaves out a required space if the "From: " name has a dot in it.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 11:00:01 2026 UTC |
This works: mail("maarten", "subj", "body","From: someone <someone@domain.com>"); This doesn't: mail("maarten", "subj", "body","From: some.one <someone@domain.com>"); Note the dot in the 2nd line. The error message my MTA gives me:The following annotated headers illustrate where the error(s) occurred: Error in "From" header address: some.one<someone@domain.com> ^-missing end of mailbox Apparently, mail() leaves out a required space if the "From: " name has a dot in it. UPDATE: I use zmailer. sendmail seems to ignore the problem. Still, according to RFC822, there should be a space.