mail() example wrong

From: Date: Thu, 17 Jul 2003 20:13:34 +0000
Subject: mail() example wrong
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355338@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.
... is wrong? Bernhard -- Low end Serverhousing ab 25 e inkl. 1x 11 e/GB, etc.: http://bksys.at

« previous php.doc (#969355338) next »