I want to send an email to multiple email address with different information in them. This code work for the auto response, but how do I include other email recipients.
include "config.php";
// DO NOT EDIT BELOW THIS LINE, UNLESS YOU KNOW WHAT YOU ARE DOING
if ($username == "" or $userpass == "" or $useremail == ""){$msg3=true;}
$email = $useremail;
if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", $email)) {
$msg4 = true; $pass = "no"; }
if (!isset($useremail))
echo "Error, Please re-send $username" ;
$todayis = date("l, F j, Y, g:i a") ;
$subject = "Registration";
$message = " $todayis [EST]
User Name - $username
User Email - $useremail
From: $sendersName
Your user level will be set upon approval
This email was sent by an auto responder, you cannot reply to this email.
";
$from = "From: $sendersEmail";
if ($email != "")
mail($email, $subject, $message, $from);
Also how do I move From: $sendersName above the $todayis = date("l, F j, Y, g:i a") ; without getting errors.