Ok, so my mail is great and wonderful and happy... except my bcc and cc headers don't bcc or cc, or get mail to those recipients at all really.
Here's what I'm doing...
$result ends up equaling 1, $to gets the email just fine, but the $bcc does not. And I've echo'd it to make sure that $bcc is a normal and good and valid email.
Any input, or shall I just write the loop and send everyone their own copy?
-Rob
Here's what I'm doing...
Code:
$emails = get_emails();
$to = $emails["to"];
$bcc = $emails["bcc"];
$message = "<HTML><HEAD></HEAD><font color = yellow>Still testing</font></HTML>";
$from="xxxx";
$headers = "From: $from\n";
$headers .= "Reply-To: $from\n";
$headers .= "X-Mailer: PHP/".phpversion()."\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "Bcc: $bcc\n";
$result=mail($to,"Mail Test", $message, $headers);
echo $result;
$result ends up equaling 1, $to gets the email just fine, but the $bcc does not. And I've echo'd it to make sure that $bcc is a normal and good and valid email.
Any input, or shall I just write the loop and send everyone their own copy?
-Rob