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

Free Support Forum - aspose.com

Connecting to Exchange 2013

I am new to using Aspose.Email. I am trying to connect to my Exchange 2013 mailbox using the following:

    Dim client As ExchangeClient = New ExchangeClient(“[http://servername/exchange/gbrowning”](http://servername/exchange/gbrowning%E2%80%9D), _
    “gbrowning”, “password”, “domain”)

Console.WriteLine(“Mailbox size: " & client.GetMailboxSize() & " bytes”)

But I receive the following error message:

The remote server returned an error: (403) Forbidden.
Is there a setting on Exchange that I need to change/turn on for this to work? What is the best way to connect to Exchange?


Hi Gary,

Thank you for contacting Aspose support team.

You may please use following sample code for connecting to exchange server 2013 and let us know the feedback.

IEWSClient client = EWSClient.GetEWSClient(“https://exchange.domain.com/ews/Exchange.asmx”, “username”, “password”,"");

Console.WriteLine("Mailbox size: " + client.GetMailboxSize() + " bytes");

Thank you. That worked.

Hi Gary,

You are welcome and please feel free to contact us if you have any other query related to the API.