The email was not sent Please fill all the required fields ";
}
elseif(!ereg("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
echo "The email was not sentThe email address is invalid ";
}
elseif(mail($receiverMail, $subject, $msgformat, "From: $name <$email>")) {
echo "The email has been sent!I will get back to you as soon as possible. "; }
else {
echo "The email was not sentPlease try again... If the problem continues there's probably something wrong with the server. ";
}
}
else { ?>
|