Contact Me
setExpectedHostname($_SERVER['SERVER_NAME'])
->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);
if ($resp->isSuccess())
{
// If the response is a success, that's it!
$email_to = "vg@blue105.com";
$message = "From: {$_POST['name']} - {$_POST['from_email']} - {$_SERVER['REMOTE_ADDR']}\n\n".$_POST['message'];
//mail("$email_to", 'Valerio\'s Way Form: '.stripslashes($_POST["subject"]), "$message", "From: {$_POST['name']} <{$_POST['from_email']}>\n");
$hideForm = TRUE;
//
Your message has been successfully sent.
//
Expect a reply soon.
?>
Thank you!
Sorry your spam message was not received. Better luck next time!
getErrorCodes();
if ($errors[0] == 'missing-input-response')
{
echo "
Please complete the image verification to proceed.
";
}
}
}
// Do not show the form if the result is positive and the message has been sent
if ($hideForm == FALSE)
{
// Add the g-recaptcha tag to the form you want to include the reCAPTCHA element
?>
Please fill out the form below to contact me.