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 address is invalid
"; } elseif(mail($receiverMail, $subject, $msgformat, "From: $name <$email>")) { echo "I will get back to you as soon as possible.
"; } else { echo "Please try again... If the problem continues there's probably something wrong with the server.
"; } } else { ?>