#35013 [Opn->Bgs]: bad passing of header to get sender's email address

From: Date: Tue, 01 Nov 2005 10:35:37 +0000
Subject: #35013 [Opn->Bgs]: bad passing of header to get sender's email address
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87302@lists.php.net to get a copy of this message
ID: 35013 Updated by: sniper@php.net Reported By: php-louis at steelbytes dot com -Status: Open +Status: Bogus Bug Type: Mail related Operating System: win2003 PHP Version: 5CVS-2005-10-31 (snap) New Comment: . Previous Comments: ------------------------------------------------------------------------ [2005-11-01 11:35:27] sniper@php.net See bug #28038, this is just one more case related to that. ------------------------------------------------------------------------ [2005-10-31 01:41:24] php-louis at steelbytes dot com still does it. what did you change? anything? or were you just wanting to findout if it happens in the curretn snapshot as apposed to last releasse ver? ------------------------------------------------------------------------ [2005-10-31 01:27:00] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-10-29 03:46:45] php-louis at steelbytes dot com Description: ------------ when mail() is passing the headers to get the sender's email address and the headers are similar to the following: To: blah From: user@domain.tld AnotherHeader: value it retrieves " user@domain.tld" as the senders email, instead of "user@domain.tld". this is a problem when sending email to yahoo, as the MAIL FROM smtp command that mail() generates looks like the following: MAIL FROM:< user@domain.tld> instead of MAIL FROM:<user@domain.tld> or MAIL FROM: <user@domain.tld> and yahoo rejects. Reproduce code: --------------- mail('test@yahoo.com','test subject','test body','From: user@myserver.tld'); Expected result: ---------------- yahoo rejects with the following 501 Syntax error in parameters or arguments Actual result: -------------- n/a ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35013&edit=1

« previous php.bugs (#87302) next »