I am using Contact Form 7 in my word press website.
CF-7 Working properly but when I use Recaptcha extension with it, it shows error and not sending mails.
I am using Contact Form 7 in my word press website.
CF-7 Working properly but when I use Recaptcha extension with it, it shows error and not sending mails.
Comments are closed.
I know this is old. But better late than never. Right? You might have already figured it out by yourself. But in case you or someone else runs into the same problem:
I just had the same problem. CF7 sent the mail without reCAPTCHA. When using reCAPTCHA, the verification said I’m human, but when clicking
Send
I got the same error messageHowever, after unsuccessfully trying to figure out whats wrong in the code or file / directory permissions, I rechecked the API keys provided by Google and saw my mistake.
Sometimes, the keys can have a dash
-
in them. So if you (like me) just double clicked the field to copy-paste the key, it will only copy a portion of it.Like this one:
ltrnA15pKhyzPJU9sSvh6gh-nFEWvDgC
If you double-click it, it will only copy the first part before the
-
likeltrnA15pKhyzPJU9sSvh6gh
. And if you then use this key on your site, it will be invalid and you will get the error message.So make sure you carefully copy all of the key.
Here is my the solution that worked for me.
When I created the first recaptcha, I chose invisible recaptcha and that’s what generated the problem in the form.
I deleted the created recaptcha and created a new one with the type recpatcha v2. I copied the keys and everything worked correctly.
google reCAPTCHA ver 2.x with contact form7 is not working anymore as ver 2.x is deprecated. You should have to update the api key and site key for the google recaptcha. I had the same issue and I have updated the key but its not working. So finally I removed the reCAPTCHA tag from the form and its working fine and sending the email.
reCAPTCHA is not working with contact form 7 so you can use ‘Advanced noCaptcha & invisible Captcha’ and add shortcode [anr_nocaptcha g-recaptcha-response]