GetMailServers function

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

Unit
DNSsend

Description
A very useful function, and example of it's use is found in the TDNSSend object. This function is used to get mail servers for a domain and sort them by preference numbers. "Servers" contains only the domain names of the mail servers in the right order (without preference number!). The first domain name will always be the highest preferenced mail server. Returns boolean TRUE if all went well.