I read that
All custom headers (like From, Cc, Bcc and Date) are supported
from PHP mail() reference, but how do I actually implement this in my code? i.e. I don’t want any recipient to see the other e-mails… ever.
Something like:
<?php
$to = "someguy@somesite.com, another@abc.com, someother@def.com";
$subject = "test message";
$msg = "this is a test";
$headers = "Bcc"; // <-- this?
if (mail($to, $subject, $msg, $headers))
echo "message sent";
else
echo "uh oh";
?>
Look at the examples on the page.
Here’s one…
So you just add comma separated email addresses after
Bcc:in the header.Here’s one with a loop that will add addresses from the array
$recipto BCC: