From:             [EMAIL PROTECTED]
Operating system: Windows NT 4.0
PHP version:      4.0.4pl1
PHP Bug Type:     Documentation problem
Bug description:  mail() doesn't send cc or bcc as in the manual instructions

script example:
$mailto="[EMAIL PROTECTED]";
$mailsubject="cc test";
$mailmessage="message content";
$mailHeader="cc:[EMAIL PROTECTED]\r\n";
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]\n"; // CC to
$headers .= "bcc:[EMAIL PROTECTED], [EMAIL PROTECTED]\n"; // 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 "\r\n" not just "\n".

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

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

Edit Bug report 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