We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Access mail services using OAuth2


I’'m trying to create imapClient providing access token (obtained by login with MSAL library) directly into the constructor of the client, but i get Unauthorized error, why that happen?

I’m using the first example of this tutorial https://docs.aspose.com/email/net/access-mail-services-using-oauth/

Hello @Berkshire,

Refer to the following article about prerequisite settings, getting a token using MSAL and connection using ImapClient. Thanks.