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

From: Date: Fri, 14 Oct 2005 15:36:02 +0000
Subject: #34872 [Opn->Bgs]: can `s.b. <somebody@somewhere.com>' be used as the `to' parameter to mail() ?
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969370601@lists.php.net to get a copy of this message
ID: 34872 Updated by: theseer@php.net Reported By: nyvsld at gmail dot com -Status: Open +Status: Bogus Bug Type: Documentation problem PHP Version: Irrelevant New Comment: This is not a bug. The note is talking about limitations when used on the windows plattform where an external MTA is used. Previous Comments: ------------------------------------------------------------------------ [2005-10-14 16:34:00] nyvsld at gmail dot com 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 this bug report at http://bugs.php.net/?id=34872&edit=1

« previous php.doc (#969370601) next »