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

Free Support Forum - aspose.com

Shared Mailbox in Office 365 and OAuth

With the Java (jdk16:21.2) library I am using the EWSClient with OAUTH credentials to read a mailbox. This works fine with mailboxes from users but with a shared mailbox I get the following error:

ErrorNonExistentMailbox The SMTP address has no mailbox associated with it.

I thought doing something with impersonateUser would help but this code isn’t reached because the error happens sooner in the EWSClient.getEWSClient code.

@bascouwenberg,
Thank you for contacting support.

Please check your results using the latest version of Aspose.Email. If the issue persists, please share a code example or a simple project reproducing the error.