ID:          34872
 Updated by:  [EMAIL PROTECTED]
 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 <[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 this bug report at http://bugs.php.net/?id=34872&edit=1

Reply via email to