Hi there, I'm having trouble with this mail() function. I'm trying to send e-mail to my Mailing List in the Bcc field but isn't working. The Bcc field is not passed thru.
//PHP Starts
$SUBJECT = $subject;
$MESSAGE = $message;
$to = "my@email.com";
$v01 = "SELECT * FROM mailinglist ORDER by email ASC";
$go = mysql_query($v01);
while($found = mysql_fetch_array($go)) {
$to_bcc = $found['email'];
$header = "From: ".$from."\n";
$header .= "MIME-Version: 1.0\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\n";
$header .= "X-Priority: 1\n";
$header .= "Bcc: \"$to_bcc\" \n";
mail($to, $SUBJECT, $MESSAGE, $header);
}
//PHP Ends
Thanks for the help.