reCaptcha in form.php

8 replies · opened Mar 31, 2020

DDcRodMar 31, 2020

Hello,
I take the reCAPTCHA V2 and put the keys in there places as descrition on guideline.
The answare is:
We have detected that your site does not verify the solutions provided for reCAPTCHA tests. You must verify them in order to correctly use the reCAPTCHA functionality on your site...
I can't understand why is not available.

HTML
<!-- reCaptcha -->
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<div class="col-4 g-recaptcha bottommargin-sm" data-sitekey="6LcgdeIUAAAAANW9mYYyrS43wnmo1Y0nitcT-o-A"></div>

PHP:
reCaptcha
---------------------------------------------------*/
// Add this only if you use reCaptcha with your Contact Forms
$recaptcha_secret = '6LcgdeIUAAAAAGRYacbiJRgoSl8ttNX4V_XJyANG'; // Your reCaptcha Secret

Thank you for help.

SSemicolon WebSTAFFApr 1, 2020

Hello,

This could be related to one of your unused reCaptchas or you haven’t started using reCaptchas yet. Once you start using the reCaptchas, this message should automatically disappear. Nonetheless, this message is not related to the Canvas Template. There might be some possible issues related to this:

  1. The reCaptcha Keys do not match.

  2. The allow_url_fopen Setting in your PHP.ini File is disabled. You will need to enable this to make the reCaptcha work.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

DDcRodApr 3, 2020

Hello again,
Response from provider: "the mail service is not available on this plesk because it is a shared plesk with several customers on it ; Otherwise you must use the mail server of their own mail service for the contact form".

I tried to put in:
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "smtp.domaine.com";
$mail->SMTPDebug = 2;
$mail->SMTPAuth = true;
$mail->Port = 26;
$mail->Username = "yourname@yourdomain.com";
$mail->Password = "yourpassword";

Without succes.
Did you know the right way for an external smpt, or external domain?

Thank you for solution
Regards

DDcRodApr 3, 2020

Forgot, PHP version: 5.4.16 is it a reson for default with code?
Thank you.

SSemicolon WebSTAFFApr 3, 2020

Hello,

The SMTP Codes samples are already provided in the Documentation > Forms Section. However, as you mentioned that your Server's PHP version is less than 5.6, please make sure that you upgrade your Server’s PHP engine to latest version and this issue should be resolved automatically.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

DDcRodApr 6, 2020

Hi again,

I upgrade PHP to 7.3.2
apply your directive but without result to send the contact form with or without reCaptcha...
I feel alown in the dark...
Could you help me please?

Thank you for solution
Regards

DDcRodApr 7, 2020

I see from user:
February 22, 2020 at 11:17 am Reply webdone

SMTP configured: I bypass the problem removing class=”form-widget” and using redirection in the PHP file.

Is it a solution for me? Also how may I will do it?

Thank you

DDcRodApr 7, 2020

Resume for form.php
• reCaptcha, seems ok
• smpt.office365.com, doesen't work.
I cant send anything.
Tried mail.office365.com smtp.office365.com the sender is contact@domaine.com also password right (tried this adress by other way succesfuly).
Tried port 26 or 587

I made a second form.html without reCaptcha, same thing, no sending possible.
I don't see solution

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard