How to properly configure SQL Database Mail to send through an Office 365 SMTP server without using an on-prem SMTP server? [closed]
-
16-02-2021 - |
Frage
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:
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:
Lösung
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 :)
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit dba.stackexchange