lundi 31 août 2015

Sending to Multiple Emails in PHP

There is something off in this php, after the Reply-To email address in an email - I am getting a Cc afterward and it's not getting send to both the CC & BCC. This tells me I am making an error somewhere in this code and it's probably really obvious.

// Create email 
$email_subject = "Subject";
$email_body = "You have received interest. \n\n".
              "Name: $name \nEmail: $email \n";
$headers = "From: 1-email@email.com\n";
$headers .= "Reply-To: $email";
$headers .= "Cc: 2-email@email.com\r\n";
$headers .= "Bcc: 3-email@email.com\r\n";

mail($to,$email_subject,$email_body,$headers); // Post message



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire