0 votes
by (140 points)
edited by

Use of 'ExchangeService' object from Microsoft.Exchange.WebServices is quiet comfortable to connect to exchange mailbox , where settings of the mail server are exposed using AutoDiscover Server.
In Rebex EWS object need to connect need to provide 'hostname'(min requirement). When I give hostname from email Id (user@hostname(.com) ) to connect I get 'Rebex.Net.NetworkSessionExceptionStatus.ServerProtocolViolation' exception with message "SOAP response expected" .

Applies to: Rebex Secure Mail

1 Answer

0 votes
by (148k points)

Unfortunately, auto-discovery is not supported yet, although we have been considering adding support for it.

In the meantime, the recommended solution is to retrieve and parse autodiscover.xml in custom code according to Autodiscover web service reference.

...