I had to switch off basic auth to Outlook365' SMTP, because Microsoft turned off it at all. I use smtplib for sending emails (sending emails with MS Graph has not implemented multipart MIME).
Micosoft shows how to sign with legacy protocols (SMTP, IMAP, POP3) here.
Basically: i need to use token generated witin Account.authenticate method and make "AUTH" command to smtp.
NOTE: If you will have 5.7.3 Authentication unsuccessful error, make sure to call explicitly scope https://outlook.office.com/SMTP.Send with Outlook domain, as I did in above code.
This is not a issue, but a solution/discussion.
I had to switch off basic auth to Outlook365' SMTP, because Microsoft turned off it at all. I use smtplib for sending emails (sending emails with MS Graph has not implemented multipart MIME).
Micosoft shows how to sign with legacy protocols (SMTP, IMAP, POP3) here.
Basically: i need to use token generated witin Account.authenticate method and make "AUTH" command to smtp.
Here's my code snippet:
NOTE: If you will have 5.7.3 Authentication unsuccessful error, make sure to call explicitly scope https://outlook.office.com/SMTP.Send with Outlook domain, as I did in above code.
Microsoft documentation: here
Similar issues: 1 and 2