any one use BCC wil MAIL() function?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

any one use BCC wil MAIL() function?

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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?
Post Reply