Microsoft SMTP Mail Server problems

Hi all,

I’m trying to get Modx to send mail via the client’s SMTP server, as the php mailer wasn’t getting through their firewall.

I have a dedicated email address set up with all the credentials, but wondered if anyone has had issues with Microsoft Outlook mail servers before?

I’m using Bob’s brilliant Quick Email snippet to debug, but it just says ‘SMTP ERROR: Failed to connect to server: Connection timed out (110)’.

Below are the settings I’m using - anyone using Microsoft mail servers notice anything wrong here?

mail_smtp_auth	Yes
mail_smtp_autotls	Yes
mail_smtp_hosts	mydomain-com.mail.protection.outlook.com
mail_smtp_keepalive	No
mail_smtp_pass	********
mail_smtp_port	587
mail_smtp_secure	ssl
mail_smtp_single_to	No
mail_smtp_timeout	10
mail_smtp_user	[email protected]
mail_use_smtp	Yes

Thanks guys!
Andy

I’ve also tried the mail server of:

smtp.office365.com

But still the same error.

In this article

they write to set “SMTP Connection Prefix” (I think that’s the setting mail_smtp_secure now) to tls.
Maybe you could try that.

Boom. Sorted. Thanks Harry…!!!

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.