Form Submit Failed

6 replies · opened Apr 17, 2020

PpikapinaApr 17, 2020

Hi,

I use contact.html but it failed to send email. I have browsed the forum but cannot find an answer.
I have followed the instruction in documentation to set SMTP in include/form.php.
I also tried sending email using php mail() function, email is successfully sent using mail() in the following code.

<?php
// the message
$msg = "Test Message";

// send email
mail("myemail@mydomain.com","Test",$msg);
?>

Thanks for your kind attention,

PpikapinaApr 17, 2020

Further, the contact form is

https://www.pikapina.com/contact.php

It is contact.php instead of contact.html because I have the header.html and footer.html in separate files. But other than the php extension, basically it is an html file.

SSemicolon WebSTAFFApr 17, 2020

Hello,

This issue is most likely due to Server Configuration errors or User Customizations in the include/form.php File. The Form Processor uses the PHPMailer Library which is the leading mail library and Our Form Processors have been developed and improved continuously for the last 5 years. So, the issue is not necessarily due to the Form Processor included.

We have tried submitting the Form on your website and we are receiving a 500 Internal Server Error which you can also check on your Browser's Developer Console after trying to submit the Form. Please consider adding the following code at the very top of your include/form.php File:

error_reporting(E_ALL);

which should display all the possible errors. Please notify us about the Error Message you see, after going through the process above, so that we can provide you with more assistance on this.

Hope this Helps!

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

PpikapinaApr 18, 2020

Thanks for your reply.
I added "error_reporting(E_ALL);" at the top of include/form.php
and runnning the contact form. I opened the developer console, but from there I'm not sure what to report.

SSemicolon WebSTAFFApr 18, 2020

Hello,

Simply update the include/form.php File Online and let us know. We will do further checks. Thanks for your Patience.

Additionally, we request you to get in touch with your Web Hosting Provider as they can provide you with more details about the issue.

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

PpikapinaApr 18, 2020

Hi,
Thanks for your reply. I get back and use the Default form.php. And it works now.

I'm not sure what was the problem before. because I did use the default form.php. It didnot work the first time, so I added the SMTP parameter.
Now it works without SMTP parameter.

Case closed. Thanks for your immediate response.

SSemicolon WebSTAFFApr 18, 2020

Hello,

Awesome! Glad that your issues were resolved. 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