Gen. partnerAlgotech

PHP function getmxrr()

Get MX records corresponding to a given Internet host name

|
September 11, 2019

Availability in PHP 4.0

Get MX records corresponding to a given Internet host name

Parameters

Parameter Data type Default value Note
$hostname string not The Internet host name.
$mxhosts array not A list of the MX records found is placed into the array mxhosts.
$weight array null

Return values

bool

true if any records are found; returns false if no records were found or if an error occurred.

Other resources

Official getmxrr documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.