note 20765 deleted from function.getmxrr by alindeman
| From: | alindeman@php.net | Date: | Mon, 15 Apr 2002 21:40:32 +0000 |
| Subject: | note 20765 deleted from function.getmxrr by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29399@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);