Please fill out the form below and we will return your email promptly.
Config::GOOGLE_RECAPTCHA_SECRET_KEY, 'response' => $reCaptchaToken ); $postJSON = http_build_query($postArray); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://www.google.com/recaptcha/api/siteverify"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $postJSON); $response = curl_exec($curl); curl_close($curl); $curlResponseArray = json_decode($response, true); if ($curlResponseArray["success"] == true && $curlResponseArray["score"] >= 0.5) { // 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']; if ($_POST['from_email'] != 'eric.jones.z.mail@gmail.com' && $_POST['from_email'] != 'ericjonesmyemail@gmail.com') { mail("$email_to", $_POST["subject"], "$message", "From: {$_POST['name']} <{$_POST['from_email']}>\n"); } $hideForm = TRUE; ?>
Your message has been successfully sent.
Expect a reply soon.
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 and we will return your email promptly.