Microsoft 365 SMTP settings Contact Form Solution

1 reply · opened Apr 2, 2022

BbestnewnameApr 2, 2022

my settings

$mail->isSMTP();
$mail->Host = "smtp-mail.outlook.com";
$mail->SMTPDebug = 0;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "STARTTLS";
$mail->Port = 587;
$mail->Username = "USER@COMPANY.COM";
$mail->Password = "PASSWORD";

PLEASE THIS IS A THORN IN MY POINTER FINGER... IF ANYONE HAS CRAKED THE CODE. THANKS

SSemicolon WebSTAFFApr 4, 2022

Hello,

Consider using the SMTPSecure Setting as $mail->SMTPSecure = 'tls'; instead as there is no STARTTLS option in PHPMailer.

This should fix the issue. 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