Thank you for using Aspose.Email.
I would like to share with you that ExchangeClient class is used to access Exchange Server 2003 and 2007 over WebDav protocol. In order to connect to Exchange Server 2010, you need to use the ExchangeWebServiceClient (EWS) class as follow:
// Create instance of
ExchangeWebServiceClient class by giving credentials
ExchangeWebServiceClient client = new
ExchangeWebServiceClient(“https://exchange-server-host/ews/Exchange.asmx”, “user”, “pwd”, “domain”);
// Get mailbox size
size: " + client.GetMailboxSize() + "
// Get exchange mailbox info
ExchangeMailboxInfo mailboxInfo =
// Get Mailbox URI
URI: " + mailboxInfo.MailboxUri);
// Get Inbox folder URI
folder URI: " + mailboxInfo.InboxUri);
// Get Sent Items folder URI
Items URI: " + mailboxInfo.SentItemsUri);
// Get Drafts folder URI
folder URI: " + mailboxInfo.DraftsUri);
For further examples, please refer to the Programming with Exchange section of our online documentation. These examples contain code snippets for both ExchangeClient (Exchange 2003 and 2007 using webdav) and ExchangeWebServiceClient (Exchange 2007 and 2010). You should consider the examples of EWS for your needs. Please let us know if we can be of any additional help to you. We will try to help you as soon as possible.