inoperative submission form.php

13 replies · opened Apr 8, 2020

DDcRodApr 8, 2020

Hi,
Sorry I let the recaptcha topic cause of double way.

I tried to use the form.php in SMTP configuration with Office365, but nothing happened when I press the submit button!
Tried your instructions Documentation > Forms Section without result.

• PHP to 7.3.2
• 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
• Tried 3 different form.html also without modify code

I read from: 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's for reply, I am stoped in deployment since april 2...

SSemicolon WebSTAFFApr 8, 2020

Hello,

Thanks for your Patience!

We have checked out your Website and the issue appears to be with your Servers. We just received a 504 Gateway Timeout while trying to send an email. Also, make sure that the $mail->SMTPDebug is set to 0 and the SMTP is enabled in your Office365 setup. Additionally, please checking out this Troubleshooting Guide: https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting for the PHPMailer so that you can identify the issue related to your servers.

Some other users also reported: https://wordpress.org/support/topic/504-gateway-2/ . So this might be an issue with your Web Hosting Company as well.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

DDcRodApr 8, 2020

Thank you for response.
Set Debug to 0
Mdified the smtp.office365.com and port: 587, I had a response from serveur (see capture please).
SMPT is ok from Outlook on line: send email and recive it (also copy on another adress from other provider).

Regards

SSemicolon WebSTAFFApr 8, 2020

Hello,

It seems that the Email is working now. The Error message you are receiving could be due to the fact that the $mail->Username and the $fromemail have different values. Make sure that it is same and try again and let us know about what happens next. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

DDcRodApr 9, 2020

Hello,
thank you for reply.

It's work perfectly with • Debug=0 (was with the term "no-replay@yourdomain.com" I had left "no-replay"
If • Debug=2 the mail come to box but the reCaptcha tel that is not sent...
May I must let it with debug=0?
Does it could generate secuity trouble for the final client?

Thank you again for your help!!
Regards

DDcRodApr 9, 2020

Also, a second request,

In french, we write with "prominent characters" but we recive contactform came like the exemple below:

On avance, bientôt prêt pour être lâché dans la nature

Thank's a lot for solution.
Regards

SSemicolon WebSTAFFApr 11, 2020

Hello,

  1. Absolutely! Keeping $mail->SMTPDebug = 0; will work perfectly fine.

  2. Simply set the charset for the $mail Object. Example:

$mail->CharSet = "UTF-8";

Make sure that you add the above line of code anywhere after this line: $mail = new PHPMailer(); .

This will definitely work fine. Hope this Helps!

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

DDcRodApr 11, 2020

Hello again,
Thank you for solutions!

A new question: Bot Protection
it prevents me from sending formular.
I can't use it after multiple sendings.

Does it configured to block sending after "xx" mails?
Could I incrise this option or reset it?

Thank you again for your excellent help.
Regards

SSemicolon WebSTAFFApr 11, 2020

Hello,

Very Happy to Help! :)

The Form Processor does not count the number of times you submit the form or block anything based on that. You can submit your Form unlimited times. However, upon checking your Form's HTML Codes, we found an issue with this line of code:

which is completely incorrect. Make sure to check the function of prefix field in the Documentation > Forms Section and how it works. All the Fields in your Contact Form starts with template-contactform- and this is why your prefix value should always be template-contactform-. Make sure that you replace the above line of code with this code:

Now, your Form should work perfectly. It is highly recommended to check the Documentation and the Sample Codes to ensure you do not face any unnecessary issues. For example, check the Form Codes in the forms-*.html Templates. Hope this Helps!

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

DDcRodApr 12, 2020

GREAT,
Sorry for my mistake, thank you for indulgence.

I'm back with:
$mail->CharSet = "UTF-8";
It's work perfectly for the content of the response, but not for the "titles" in bold (exemple below, see capture please).

Prénom > Prenom
Société > Societe
Activité > Activite
Téléphone > Telephone

Thank you for all.
...next web site I will be more quiet!
Regards

SSemicolon WebSTAFFApr 12, 2020

Hello,

Not at all! We are more than Happy to Help! But to avoid any delays for you, it is highly recommended that you check the Official Guide so that you can solve some of the issues yourself quickly.

Thank You for reporting this issue. The error with the UTF-8 encoding appears to be occurring when we are converting the Word into Uppercase. Please find the following line of code in the include/form.php File:


$name = ucwords( str_replace( '-', ' ', $name ) );

and replace it with:


$name = mb_convert_case( $name, MB_CASE_TITLE, "UTF-8" );

This should definitely fix this issue. Hope this Helps!

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

DDcRodApr 14, 2020

GREAT!
Everything is perfect.
Thank you verry much for your professional skills.
Best Regards
Rodolphe.

SSemicolon WebSTAFFApr 14, 2020

Hello,

Awesome! Glad that your issues were resolved. Very Happy to Help!

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

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