I am not able to login to Office365 to read the emails.
Here is the code I am using
using (var imap = new Imap())
{
imap.ConnectSSL("outlook.office365.com");
imap.LoginOAUTH2(provider.EmailUserName, provider.AccessToken);
}
I have a valid token, I am able to send emails but not read emails.
Is there something I am missing?
Here is the error I am getting:
A9110002 NO AUTHENTICATE failed.