Here's my mail code:
$mailthis = stripslashes($_POST['htmlCode']);
$mailList = str_replace("\r\n",'',implode(',',file('maillist.txt')));
$mailList = stripslashes($mailList);
$email = "email@example.com";
$Subject = "Mail list test";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $email\r\n";
mail("$mailList", stripslashes($Subject), $mailthis, $headers);
All works fine, but it's sending to a mail list and I don't want the recipient to get the list of addresses in the header.
How can I hide all those addresses from showing up on the recipient's end?
I tried using:
$headers .= "Bcc: $mailList";
But it only sent to the first address in the list and then placed all the rest of the addresses in the body???