Forum Discussion
Send Mail (SMTP) through Office 365 with MFA
Jeff Harlow someone answered below, not sure why that took so long. The easy answer is that you generate and then use an app password for that account, instead of the regular user password. That in effect serves as the second authentication method for the dual authentication. However...
We too use SMTP to send email from various robots, web sites, and marketing systems. What I have done to reduce the complexity somewhere (perhaps?), is to adopt a third party mailing system with complete DKIM/DMARC/SPF records in place for this third party sender. This really does eliminate so much of the hassle with using an Office 365 SMTP account to send email. I really think that the app password is kind of hack, it's just another password that can be cracked! We are using Mailjet.