is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { // Your code here to handle a successful verification $headers = "From: \"FreeDictionaryFeedback\"\n"; $to = "barisistanbul@gmail.com"; $subject = "Freedictionary.org - Feedback"; $msg = "Name: ".$_POST['name']."\nEmail: ".$_POST['email']."\nMessage: ".$_POST['message']; $mail_sent = mail($to, $subject, $msg, $headers); //echo $mail_sent ? "Mail sent" : "Mail failed"; echo 'Thank you. Your message said "'.$_POST['message'].'"'; } } else { ?>