I am using PHP mail and trying to send BCC, but for some reason since I've added the lines with //ADDED NEW on it , it's just now sending any emails at all.
Here is the full code:
$to = "firstname.lastname@example.org"; $bcc = $row['recipients']; //ADDED NEW $subject = $row['subject']; $message = $row['text_body']; $headers = "From: " . strip_tags('email@example.com') . " "; $headers .= "Reply-To: ". strip_tags('firstname.lastname@example.org') . " "; $headers .= "Bcc: $emailList "; //ADDED NEW $headers .= "MIME-Version: 1.0 "; $headers .= "Content-Type: text/html; charset=ISO-8859-1 "; mail($to, $bcc, $subject, $message, $headers); // $bcc ADDED NEW
Why is this not sending?