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: ------------------------------------------------------------------------------------------------- <?php $returnvar="false"; $mailto="[EMAIL PROTECTED]"; $mailsubject="cc test"; $mailmessage="message content"; $mailHeader="cc:[EMAIL PROTECTED]\r\n"; $returnvar=mail($mailto,$mailsubject,$mailmessage,$mailHeader); ?> <html> <body> the mail was sent? <?php echo "<br>returnvar= $returnvar<br>"; ?> </body> </html> --------------------------------------------------------------------------------- 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: http://bugs.php.net/?id=9859&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]