Lets say that the code utilizes the EWS client and it will be running on server reading a shared mail box emails located in the Inbox folder. What sort of credentials need to be passed to that service? The mail box itself does not have credentials it is just a shared mailbox. It seems tricky to have to provide credentials like taht to establish communication with exchange 2010 and read the inbox.
What I perceive is that you are talking about the shared mailboxes where a user can access another user’s mailbox using his own credentials. This is possible using the Aspose.Email API using two techniques. Let’s say that we have user 1 and user 2, and user 1 has been granted access by the Exchange Server administrator to access user 2’s mailbox. The following two methods can be used for this purpose:
1. Read Emails from Other user’s mailbox
2. Exchange Impersonation
Please try the sample code from these samples and share your feedback with us.