ID: 9859
Updated by: danbeck
Status: Open
Old-Bug Type: Documentation problem
Bug Type: Mail related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 

I've corrected the Cc: and Bcc: problems in the mail() example, but I'm reclassifying 
this as a Mail Function problem.  Is it necessary for the win32 version of the mail() 
function to require that you use \r\n? 

If it is, I can add this information to the mail function docs.

Previous Comments:

[2001-03-20 02:42:22] [EMAIL PROTECTED]
script example:

$mailto="[EMAIL PROTECTED]";
$mailsubject="cc test";
$mailmessage="message content";
$mailHeader="cc:[EMAIL PROTECTED]";
the mail was sent?
echo "<br>returnvar= $returnvar<br>";
The above does not send the carbon copy.

The pdf manual says:

$headers .= "cc:[EMAIL PROTECTED]"; // CC to
$headers .= "bcc:[EMAIL PROTECTED], [EMAIL PROTECTED]"; // BCCs to
/* and now mail it */
mail($recipient, $subject, $message, $headers);

That does not work since Win32 sendmail.c looks for case sensitve "Cc:"
sendmail.c also does not look for "bcc:"

Also you must have "rn" not just "n".

I think the problem is here in win32 sendmail.c :

        if (headers && (pos1 = strstr(headers, "Cc:"))) {
                pos2 = strstr(pos1, "rn");
                tempMailTo = estrndup(pos1, pos2-pos1);


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
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