Page 1 of 1

any one use BCC wil MAIL() function?

Posted: Thu Mar 27, 2003 4:39 pm
by lostboy
i am trying to use bcc so i can see if my pitch to the client is having an effect...but trying this does not seem to work:

$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: $fname $lname <$email>\nX-Mailer: PHP Automated Mailer";
$headers .= "bcc: $bcc\n";

what have i got wrong?

TIA

Posted: Thu Mar 27, 2003 4:45 pm
by volka
does
http://www.php.net/manual/en/function.mail.php wrote:The Windows implementation of mail() differs in many ways from the Unix implementation. [...]
Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA in the first place, but are parsed by PHP. PHP < 4.3 only supported the Cc: header element (and was case-sensitive).
apply to your php-version?