#22812 [NEW]: mail function adds additionas <> symbols to $to parameter

From: Date: Fri, 21 Mar 2003 11:18:14 +0000
Subject: #22812 [NEW]: mail function adds additionas <> symbols to $to parameter
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36101@lists.php.net to get a copy of this message
From: dbakr at evalica dot com Operating system: Windows XP PHP version: 4.3.1 PHP Bug Type: Mail related Bug description: mail function adds additionas <> symbols to $to parameter mail("Danya <dbakr@evalica.com>", "the subject", "test", "From: webmaster@$SERVER_NAME\r\n" ."Reply-To: webmaster@$SERVER_NAME\r\n" ."X-Mailer: PHP/" . phpversion()); results of running scripts Warning: mail() [function.mail]: SMTP server response: 501 >: "@" or "." expected after "Danya" in c:\app\apache\html\smail\test.php on line 6 this error message caused by mail() function's adding additional <> symbols to "Danya <dbakr@evalica.com>". resulting email addres that was sended to smtp server was "<Danya <dbakr@evalica.com>>". Of course, server generates error :) -- Edit bug report at http://bugs.php.net/?id=22812&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22812&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22812&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22812&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22812&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22812&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22812&r=support Expected behavior: http://bugs.php.net/fix.php?id=22812&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22812&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22812&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22812&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22812&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22812&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22812&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22812&r=gnused

« previous php.bugs (#36101) next »