RE: [PHP-DOC] mail() example wrong
| From: | Sebastian Picklum | Date: | Fri, 18 Jul 2003 06:39:18 +0000 |
| Subject: | RE: [PHP-DOC] mail() example wrong | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969355344@lists.php.net to get a copy of this message | ||
> Hi phpdoc!
>
> I guess on
>
> http://www.php.net/manual/en/function.mail.php
>
> You should ...
>
> Example 4. Sending complex email.
>
> <?php
> /* recipients */
> $to = "Mary <mary@example.com>" . ", " ; // note the comma
> $to .= "Kelly <kelly@example.com>";
> ^^^^^^^ ^
>
> remove the real names and angle brackets or state that this is a
> wrong example. Or does it actually work and ...
>
> Note: The to parameter cannot be an address in the form of
> "Something <someone@example.com>". The mail command will not
> parse this properly while talking with the MTA.
IMO, the note is incorrect. Works at least with SMTP/sendmail.
Are there any special conditions in which mail() doesn't parse
it correctly? I can't find something in the PHP-Source.
Regards
Sebastian