From:             [EMAIL PROTECTED]
Operating system: Win2k
PHP version:      4.1.1
PHP Bug Type:     Mail related
Bug description:  mail() on win2k not parsing Cc: properly

Want to send an e-mail to 2 e-mail addresses, one normal To: and other Cc:.
 Simple script works on linux but not on win2k:

$headers = "Cc: <[EMAIL PROTECTED]>\r\n";
$headers .= "From: \"Program Test\" <[EMAIL PROTECTED]>\r\n";
mail('<[EMAIL PROTECTED]>', 'subject', 'message', $headers);

SMTP server is qmail.  Email successfully sent to To: address but Cc header
in message to Cc address (Cc address never receives email, drops to
'catch-all' account) ends up to be:

Delivered-To: cc: <[EMAIL PROTECTED]

Note the cc: and the dropped '>'.

I'm assuming this is a bug with the mail handler in PHP with win32.  I've
also tried the same code without surrounding the e-mail addresses with
<>.

Same behavior with 4.0.6 (on win32).
-- 
Edit bug report at: http://bugs.php.net/?id=14779&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to