Skip to content

GetMailExchangersAsync Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

Task<IReadOnlyList<MxRecord>> GetMailExchangersAsync(string domain, CancellationToken cancellationToken = null) ​

csharp
Task<IReadOnlyList<MxRecord>> GetMailExchangersAsync(string domain, CancellationToken cancellationToken = null)

Returns the mail exchange (MX) records for a domain name, ordered by ascending preference.

Parameters ​

NameDescription
cancellationTokenA token to cancel the operation.
domainThe domain name to query.

Returns ​

The MX records found, ordered by preference, or an empty list when none exist.