Bug #3022: mail() incorrectly parses extra headers

From: Date: Tue, 21 Dec 1999 20:43:41 +0000
Subject: Bug #3022: mail() incorrectly parses extra headers
Groups: php.dev 
Request: Send a blank email to php-dev+get-13920@lists.php.net to get a copy of this message
From: maarten@nl.linux.org Operating system: Debian 2.1r2 w/ kernel 2.2.13 PHP version: 3.0.12 PHP Bug Type: Misbehaving function Bug description: mail() incorrectly parses extra headers 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.

« previous php.dev (#13920) next »