EwsAutodiscover Method
Automatically determines the URL of the EWS server.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public bool Autodiscover(
	string emailAddress
)

Parameters

emailAddress
Type: SystemString
The e-mail address to autodiscover the EWS server for.

Return Value

Type: Boolean
true if the autodiscover attempt succeeded; otherwise, false.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks
For Autodiscover to work, it must be correctly configured on the given MS Exchange server (e.g. https://domain.com/autodiscover/autodiscover.xml must return the valid XML data). You also need to specify the credentials of a valid Exchange account (usually, the same account you're autodiscovering).
See Also