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

Free Support Forum - aspose.com

Gmail IMAP server access using OAuth

I want to migrate gmail messages from one gmail account to another gmail account using Imap server access using oauth.

First I got oauth access token of first gmail account and got ImapMessageInfoCollection for first gmail account.

Second i got oauth access token of second gmail account .

Now when i try to fetch messages from first gmail account ImapMessageInfoCollection, I get exception “object has been disposed” .

Is it possible to access two gmail account messages at same time using Imap Oauth?

Thank you for posting the query. I will answer you as soon as possible.


Yes, I think it is possible. Could you share an isolated code example or simple standalone project to reproduce the error on our side, please?

Thanks Andrey_Potapov.
I found the issue. Its working now.