Getting Mailbox Information using WebDav Client
Contents
[
Hide
]
The ExchangeClient class has members that can be used to get mailbox information from an Exchange Server by calling the ExchangeClient.getMailboxInfo method. It returns an instance of type ExchangeMailboxInfo. Get mailbox information from properties such as MailboxUri, InboxUri , and DraftsUri.
This article shows how to access mailbox information directly from an Exchange Server.
Get Mailbox Information from an Exchange Server
To get the Exchange Mailbox information:
- Create an instance of the ExchangeClient class.
- Specify the Exchange Server, username, password and domain in the ExchangeClient constructor.
- Call the ExchangeClient.getMailboxSize() method to get mailbox size.
- Call the ExchangeClient.getMailboxInfo method to get an instance of the ExchangeMailboxInfo class.
- Get the mailbox information using the ExchangeMailboxInfo class' different properties.
The sample codes below get Exchange mailbox information.