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 <[EMAIL PROTECTED]>", "the subject", "test",
"From: [EMAIL PROTECTED]"
."Reply-To: [EMAIL PROTECTED]"
."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 <[EMAIL PROTECTED]>".
resulting email addres that was sended to smtp server was "<Danya
<[EMAIL PROTECTED]>>". 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