note 20765 added to function.getmxrr
| From: | dave at php2 dot chek dot com | Date: | Mon, 15 Apr 2002 16:54:21 +0000 |
| Subject: | note 20765 added to function.getmxrr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29386@lists.php.net to get a copy of this message | ||
I ran into a DNS in Canada that has no MX records, and there are probably others. Even though
incorrect, it has to be handled. The default is to assume the mail server is at the same domain. For
example:
if (!checkdnsrr($domain, 'MX') || !getmxrr($domain, $mxhosts, $weight))
$mxhosts = array($domain);
--
http://www.php.net/manual/en/function.getmxrr.php
http://master.php.net/manage/user-notes.php?action=edit+20765
http://master.php.net/manage/user-notes.php?action=delete+20765
http://master.php.net/manage/user-notes.php?action=reject+20765