GetMailServers function

function GetMailServers(Const DNSHost, Domain: string; Const Servers: TStrings): Boolean;

Unit
DNSsend

Description
This is useful function and example of use TDNSSend object. Use for get mail servers for domain and sort them about its preference numbers. Servers contains only domain names of mail servers in right order (without preference number!). First domain name is maximum preferenced mail server. If all OK, result is TRUE.