Microsoft has recently announced OAuth 2.0 Support here for IMAP in Office365.
Could Aspose.Email.Imap.ImapClient be used to connect with Office365 using OAuth2?
We have tested and found that the ImapClient works great when connecting to Gmail using OAuth2, but the ImapClient does not appear to work with Office365.
Our primary reason originally, for selecting the ImapClient from the Aspose libraries, is so that we can maintain a single code base for interfacing with any IMAP server (Gmail and Office365).
We have been successfully using the ImapClient for connecting to both exchange and gmail (with basic authentication).
Again could you please clarify whether Aspose.Email.Imap.ImapClient can be used to connect with O365 when using OAuth2 instead of Basic Authentication?
We are using the following code to create the ImapClient
_imapClient = new ImapClient
Host = “[outlook.office365.com](http://outlook.office365.com/)”,
Port = 993,
Username = _userName,
AccessToken = _accessToken.TokenValue,
SecurityOptions = SecurityOptions.SSLImplicit