Bug #14779 Updated: mail() on win2k not parsing Cc: properly

From: Date: Tue, 18 Jun 2002 23:10:07 +0000
Subject: Bug #14779 Updated: mail() on win2k not parsing Cc: properly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11274@lists.php.net to get a copy of this message
ID: 14779 Updated by: sniper@php.net Reported By: irc-html@php.net -Status: Duplicate +Status: Bogus Bug Type: Mail related Operating System: Win2k PHP Version: 4.1.1 New Comment: yes, no need for another..just add comments to the existing one. Previous Comments: ------------------------------------------------------------------------ [2002-01-01 21:25:53] irc-html@php.net I see there are already several of the same reports. Status: Duplicate ------------------------------------------------------------------------ [2001-12-31 00:22:07] irc-html@php.net 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: <address1@example.com>\r\n"; $headers .= "From: \"Program Test\" <from@example.com>\r\n"; mail('<address2@example.com>', '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: <sales@irc-html.com 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 this bug report at http://bugs.php.net/?id=14779&edit=1

« previous php.bugs (#11274) next »