require_once('recaptchalib.php');
// Get a key from http://recaptcha.net/api/getkey
$publickey = "6LchYQcAAAAAANwjnpHzjTR1r99CjeEhnmr3aVmm";
$privatekey = "6LchYQcAAAAAAH5YHmoZJpkhHw3CT0NyqA-g5ArX";
# the response from reCAPTCHA
$resp = null;
# the error code from reCAPTCHA, if any
$error = null;
$to = "maz@zayaslaw.com";
$to2 = "rlz@zayaslaw.com";
?>
\r\nReply-To: ".$from." <'".$from."'>\r\n";
$resp = recaptcha_check_answer($privatekey,$_SERVER["REMOTE_ADDR"],$_POST["recaptcha_challenge_field"],$_POST["recaptcha_response_field"]);
if ($resp->is_valid)
{
if($_POST['email'] != "")
{
mail($to,$name_field." - CarAccidentLawyerHartfordCT.com Online Case Evaluation",$body,$addl_headers);
mail($to2,$name_field." - CarAccidentLawyerHartfordCT.com Online Case Evaluation",$body,$addl_headers);
mail("info@uniyellow.com",$name_field." - CarAccidentLawyerHartfordCT.com Online Case Evaluation",$body,$addl_headers);
//mail("",$name_field." - American-Auto-Brokerage.com contact form",$body,$addl_headers);
//mail("chieduo@gmail.com",$name_field." - American-Auto-Brokerage.com.com contact form",$body,$addl_headers);
//echo("Message successfully sent!");
$status_message = "Thank you for your message, we will contact you shortly.
";
}
else
$status_message = "There was an error sending your message. Please check that your entered your email address and re-send the information!
";
}
else
{
$status_message = "Incorrect security code entered
";
}
}
?>