Contact Form Not Working

1 reply · opened Sep 1, 2021

TtshurtsSep 1, 2021

Hi, using the freelance version of the template and can not get the Contact form to work. I tried using SMTP but still get this error message: Email could not be sent due to some Unexpected Error. Please Try Again later.

Reason:
SMTP connect() failed.

I have been talking to the hosting service and they said: "In the settings there should be written SSL encryption (e.g - $mail->SMTPSecure = "ssl";). Try to add the settings to your code and it should work."

But, I don't know where in the code this should go. Can you help?

Thanks in advance.

SSemicolon WebSTAFFSep 1, 2021

Hello,

Please use this SMTP Code instead:
[ch_pre type="php"]$mail->IsSMTP();
$mail->Host = "mail.yourdomain.com";
$mail->SMTPDebug = 0;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Port = 26;
$mail->Username = "yourname@yourdomain.com";
$mail->Password = "yourpassword";[/ch_pre]

This should definitely work fine. Hope this Helps!

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

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