php man page for getmxrr

Query: getmxrr

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GETMXRR(3)								 1								GETMXRR(3)

getmxrr - Get MX records corresponding to a given Internet host name

SYNOPSIS
bool getmxrr (string $hostname, array &$mxhosts, [array &$weight])
DESCRIPTION
Searches DNS for MX records corresponding to $hostname.
PARAMETERS
o $hostname - The Internet host name. o $mxhosts - A list of the MX records found is placed into the array $mxhosts. o $weight - If the $weight array is given, it will be filled with the weight information gathered.
RETURN VALUES
Returns TRUE if any records are found; returns FALSE if no records were found or if an error occurred.
CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.0 | | | | | | | This function is now available on Windows plat- | | | forms. | | | | +--------+---------------------------------------------------+
NOTES
Note This function should not be used for the purposes of address verification. Only the mailexchangers found in DNS are returned, how- ever, according to RFC 2821 when no mail exchangers are listed, $hostname itself should be used as the only mail exchanger with a priority of 0. Note For compatibility with Windows before this was implemented, then try the PEAR class Net_DNS.
SEE ALSO
checkdnsrr(3), dns_get_record(3), gethostbyname(3), gethostbynamel(3), gethostbyaddr(3), the named(8) manual page. PHP Documentation Group GETMXRR(3)
Related Man Pages
lwres_getrrsetbyname(3) - debian
checkdnsrr(3) - php
getmxrr(3) - php
geoip_netspeedcell_by_name(3) - php
geoip_region_by_name(3) - php
Similar Topics in the Unix Linux Community
Issues while sending a mail having records fetched from SQL -all in UNIX
print ip to hostname with array
print records where an ID appears more than once
Need help to eliminate the records
UNIX Script required for count the records in table