I have the following code, but only the hotmail address recieves the email. I can send email to the other addresses ($recipients) from my hotmail but they don’t recieve anything from this code. Can anybody tell me why or give me code change sugestions? (PS - I want to keep things very simple)
Code below:
$emailsent = false;
$recipients = "[email protected],[email protected],[email protected]";
$emailmsg = “Test email for the Online Employment Applicationn”;
$emailmsg .= “Concrete Structures, Inc.n”;
$emailmsg .= “8079 W. Olive Ave.n”;
$emailmsg .= “Peoria, AZ. 85345n”;
$emailmsg .= “P: (623) 581-5100n”;
$emailmsg .= “F: (623) 581-5354nn”;
$subject = “TEST EMAIL - DO NOT REPLY”;
$headers = "From:[email protected]";
$headers .= "Reply-To:[email protected]";
$headers .= “Content-Type: text/plain;rn charset=iso-8859-1rn”;
$emailsent = mail($recipients, $subject, $emailmsg, $headers);
if ($emailsent) {
$msg = “The email was successfully sent!”;
} else {
$msg = “Email Failure!”;
}