How to check if the exchange connection is valid? (via ews)

I need a way to find out if a configured exchange connection is really connected through user input. I am using ews.

+3
source share
1 answer
  • Use Autodiscovery if available.

  • If you know the URL, check the web service by creating an HttpWebRequest with an EWS URL and use HTTPWebResponse to verify that the response status is valid.

  • If you want to test the actual web service call in the mailbox, you can try to find the root folder by calling GetFolderType.

+5
source

Source: https://habr.com/ru/post/1776205/


All Articles