Hi @Wesley Oliveira
Yes. Microsoft has deprecated Basic Authentication for Exchange Online, which includes IMAP, POP, and SMTP protocols. This change took effect on December 31, 2022, and Basic Authentication is no longer supported for accessing email inboxes.
To access your Outlook inbox using Python, you'll need to use Microsoft Graph API with OAuth 2.0 for authentication. Microsoft Graph provides a more secure and modern way to interact with your email data. More information, see: https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online.
By the way, the Outlook tab focuses on solving problems with the Outlook desktop client. If you have any questions about Graph, please consider getting more professional advice under this Microsoft Graph tab.
Thank you for your understanding and support!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.