Contact Form returning HTTP ERROR 500

1 reply · opened Sep 2, 2020

Mmichaelgr42Sep 2, 2020

EDIT

Very sorry, I just discovered my directory structure was incorrect.
You can disregard the last message and close the ticket. thanks

I am trying to set up my contact form but am getting an error 500 whenever I submit.

Am using PHP v7.3

I have added the SMTP code from the documentation and replaced with my user name and password etc..

$mail->IsSMTP();
$mail->Host = “mail.yourdomain.com”;
$mail->SMTPDebug = 0;
$mail->SMTPAuth = true;
$mail->Port = 26;
$mail->Username = “yourname@yourdomain.com”;
$mail->Password = “yourpassword”;

The next thing I tried to enable error reporting, but I can't seem to get any errors back so I must have done something wrong.
I have added the customjs class to the form-widget div

<div class="form-widget customjs">

and I have added
error_reporting(E_ALL);

just below the <?php opening tag in the form.php class.

Mmichaelgr42Sep 2, 2020

EDIT

Very sorry, I just discovered my directory structure was incorrect.
You can disregard the last message and close the ticket. thanks

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