|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14779 mail() on win2k not parsing Cc: properly
Submitted: 2001-12-31 00:22 UTC Modified: 2002-06-19 01:28 UTC
From: Assigned:
Status: Closed Package: Mail related
PHP Version: 4.1.1 OS: Win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2001-12-31 00:22 UTC]
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: <>\r\n";
$headers .= "From: \"Program Test\" <>\r\n";
mail('<>', '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: <

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).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-01 21:25 UTC]
I see there are already several of the same reports.

Status:  Duplicate
 [2002-06-18 19:10 UTC]
yes, no need for another..just add comments to the existing one.

 [2002-06-19 01:28 UTC]
This has been fixed in CVS, please try the snapshot from
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 10:03:33 2021 UTC