form.php

7 replies · opened Mar 7, 2022

GgadamhwMar 7, 2022

Hi there

In your form.php script you comment out some lines 57-62 saying:

$mail = new PHPMailer();

/* Add your SMTP Codes after this Line */

// End of SMTP

Can you let me know what smtp codes need to go in there - can you give me some examples?

thanks

Adam

GgadamhwMar 7, 2022

Thank you

How come the port is set to 26 in your code? Should I set it to the outgoing ssl port of our server?
$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";

SSemicolon WebSTAFFMar 7, 2022

Hello,

These are the Standard Settings for SMTP. However, you may have to tweak the Settings based on your Server Configurations. You can get the specific Server Configurations for SMTP from your Web Hosting Provider and change the values accordingly.

Hope this Helps!

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

GgadamhwMar 7, 2022

Thanks

Should the port be the outgoing ssl port number?

SSemicolon WebSTAFFMar 7, 2022

Hello,

You can consider using 587 for Port with $mail->SMTPSecure = "tls"; for better security.

Hope this Helps!

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

GgadamhwMar 7, 2022

thanks

SSemicolon WebSTAFFMar 7, 2022

Do let us know if we can help you with anything else.

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