Forum Discussion
bradsalvin
Sep 26, 2023Copper Contributor
IMAP login to office365
Hello everyone I am ROR developer working on a application in which I have to read emails received on this office365 account via IMAP but currently I am not able to login via IMAP (did logged in onc...
bradsalvin
Sep 27, 2023Copper Contributor
@Vasil, actually it is urgent and at the moment I just want to retrieve emails from Inbox so conventions and rules are secondary things. So I shall be grateful to you if you can guide me in that specific way/method other than OAUTH. Surely I am going to migrate to XOAUTH2 later on. Thank you.
VasilMichev
Sep 27, 2023MVP
There is no other way. If you simply want to access a give mailbox via IMAP (as a user), use a client that supports Modern auth. Thunderbird for example. If you are creating your own solution, make sure to leverage OAuth.
As mentioned above, basic auth method have been disabled in O365. Even if you toggle Security defaults, there is no way to re-enabled basic auth. Details are for example here: https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online#pop-imap-and-smtp-auth
As mentioned above, basic auth method have been disabled in O365. Even if you toggle Security defaults, there is no way to re-enabled basic auth. Details are for example here: https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online#pop-imap-and-smtp-auth