#34872 [NEW]: can `s.b. <somebody@somewhere.com>' be used as the `to' parameter to mail() ?

From: Date: Fri, 14 Oct 2005 14:34:00 +0000
Subject: #34872 [NEW]: can `s.b. <somebody@somewhere.com>' be used as the `to' parameter to mail() ?
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969370600@lists.php.net to get a copy of this message
From: nyvsld at gmail dot com Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: can s.b. <somebody@somewhere.com>' be used as the to' parameter to mail() ? Description: ------------ in page http://www.php.net/manual/en/function.mail.php there is conflict between quote 1 and quote 2, on the form of the first parameter to mail(), about whether we can pass somebody <somebody@somewhere.com>' as the to' parameter to mail(), see below: -----quote 1----- Parameters to Receiver, or receivers of the mail. The formatting of this string must comply with RFC 2822. Some examples are: user@example.com user@example.com, anotheruser@example.com User <user@example.com> User <user@example.com>, Another User <anotheruser@example.com> -----quote 1 end ----- -----quote 2----- Notes ... As such, the to parameter should not be an address in the form of "Something <someone@example.com>". The mail command may not parse this properly while talking with the MTA. -----quote 2 end ---- Reproduce code: --------------- N/A Expected result: ---------------- mail('somebody@somewhere.com', ...) or mail('somebody <somebody@somewhere.com>') ? -- Edit bug report at http://bugs.php.net/?id=34872&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34872&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34872&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34872&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34872&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34872&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34872&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34872&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34872&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34872&r=support Expected behavior: http://bugs.php.net/fix.php?id=34872&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34872&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34872&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34872&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34872&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34872&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34872&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34872&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34872&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34872&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34872&r=mysqlcfg

« previous php.doc (#969370600) next »