ReCaptcha is not working

In short, ReCaptcha is not working. My hosting provider has discontinued support for PHP mail, so I configured the contact form to use SMTP mail. Basically, regardless of whether the ReCaptcha button is enabled or not, the mail can still be sent.
Everything is set up on Google (keys, etc.)…

Do you have a live URL i can take a look at?

Yes, thank you. https://ferderber.com
Form is at the bottom of the page.

I just tried the form and I was able to send an email. I’m not sure if you received it, but the form didn’t log any console errors and it appears to have sent.

Did you get the message?

Yes, thanks, I get the message, but problem is in ReCaptcha - you can send message without (or with) checking “I’m not robot” :confused:

My ReCaptcha still not working… Does anyone have solution?

Hello, edit your form.php file (includes folder) as follows. Don’t forget to replace the secret codes with your own codes. I had the same problem today, I solved it this way. You will still need to edit it again in every export.

	// Capture Setup
	$secretKey = '6LdaXUApAAAAADCK_SECRET';
    $captcha = $_POST['g-recaptcha-response'];

        if (!$captcha)
    {
    	echo 'capture-error';
    	exit;
    }

	// Capture 
	$ip = $_SERVER['REMOTE_ADDR'];
    $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$secretKey."&response=".$captcha."&remoteip=".$ip);
    $responseKeys = json_decode($response,true);

    if (intval($responseKeys["success"]) !== 1)
    {
    	echo 'capture-connection-error';
    	exit;
    }

        else // Capture Success Post Form
        {


		}		

Thank You,
I’ll try that tomorrow.