getmxrr

Example

 bool getmxrr ( string $hostname , array &$mxhosts [, array &$weight ] ) 

Description

Searches DNS for MX records corresponding to hostname.

Return Values

Returns TRUE if any records are found; returns FALSE if no records were found or if an error occurred.