$value)
{
$message .= $key .": ".$value."\n";
}
$MSG_OK = "
Thank you! We will contact you as soon as possible via the following email address: " . $_POST['email'] . ". If you don’t receive any response within 1 business day, please contact us again to ensure that the mail doesn’t get lost.
";
$MSG_FAIL = "
Email address not valid or empty!
";
if(is_valid_email($_POST['email']))
{
mail_utf8($email, $subject, $message);
echo $MSG_OK;
}
else
{
echo $MSG_FAIL;
}
?>