From: nyvsld at gmail dot com Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: can `s.b. <[EMAIL PROTECTED]>' 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 <[EMAIL PROTECTED]>' 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: [EMAIL PROTECTED] [EMAIL PROTECTED], [EMAIL PROTECTED] User <[EMAIL PROTECTED]> User <[EMAIL PROTECTED]>, Another User <[EMAIL PROTECTED]> -----quote 1 end ----- -----quote 2----- Notes ... As such, the to parameter should not be an address in the form of "Something <[EMAIL PROTECTED]>". The mail command may not parse this properly while talking with the MTA. -----quote 2 end ---- Reproduce code: --------------- N/A Expected result: ---------------- mail('[EMAIL PROTECTED]', ...) or mail('somebody <[EMAIL PROTECTED]>') ? -- 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
