|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11797 CC and BCC don't work in mail() function
Submitted: 2001-06-29 04:31 UTC Modified: 2002-05-22 05:52 UTC
Avg. Score:4.8 ± 0.4
Reproduced:6 of 6 (100.0%)
Same Version:0 (0.0%)
Same OS:4 (66.7%)
From: diankov_ss at usa dot net Assigned: hholzgra (profile)
Status: Closed Package: Mail related
PHP Version: 4.0.4 OS: Windows 2000
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:
From: diankov_ss at usa dot net
New email:
PHP Version: OS:


 [2001-06-29 04:31 UTC] diankov_ss at usa dot net
I'm using php 4.0.4 on Windows 2000 with IIS.
The mail() function is working perfect, except the CC and BCC options.

I tried the following:

and the same with CC.

No result.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-30 04:33 UTC]
The following should work fine. Can you check it?

mail ("", "Subject", "Body", "");
 [2001-06-30 04:48 UTC]
mail code on windows badly needs a rewrite

right now it will only find a single Cc: line,
is case sensitive on comparing againgst Cc:
(so CC: wont work) and ignores Bcc: all together
 [2001-08-19 05:13 UTC]
added missing 'Assign To:' info.

 [2002-05-22 05:52 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

 [2002-11-07 03:52 UTC] vinay_s_in at hotmail dot com
I'm using php 4.0.6 on Linux 7.x with Apache 1.3.20.
The mail() function is working perfect, except the BCC option.

I tried the following:

No result.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jun 24 08:01:23 2021 UTC