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

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public Task<string[]> GetMXHostsAsync(
	string 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.
MailBeeInvalidArgumentExceptiondomain is a null reference (Nothing in Visual Basic).
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also