SmtpGetMXHostsAsync Method
async/await version of GetMXHosts(String).

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<string[]> GetMXHostsAsync(
	string domain
)

Parameters

domain
Type: SystemString
The domain to get the list of MX hosts for.

Return Value

Type: TaskString
A task that represents the asynchronous operation. The value of TResult parameter is the array of string names of hosts willing to accept mail for the given domain, or LocalSmtpMXServerName if domain is an empty string, or a null reference (Nothing in Visual Basic) if an error occurred.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptiondomain is a null reference (Nothing in Visual Basic).
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also