How to properly configure SQL Database Mail to send through an Office 365 SMTP server without using an on-prem SMTP server? [closed]

dba.stackexchange https://dba.stackexchange.com/questions/251814

We used to use SQL Database Mail through an on-prem SMTP server, but have since transitioned to Office 365.

I created a new profile for O365 and tried configuring a new account in that profile like this: SQL Database Mail Account

I've also tried smtp.office365.com as the "Server name".

When I try sending a test email, I never receive it. The error message I get in the Database Mail Log is below: SQL Database Mail - Mail Log Errors

有帮助吗?

解决方案

It turned out we were using the wrong "Server name" and "Port" all along. Inputting the correct server and port fixed our issue. (It really is that simple to setup database mail through O365 :)

许可以下: CC-BY-SA归因
不隶属于 dba.stackexchange
scroll top