note 61773 added to function.getmxrr
| From: | off at NOSPAM dot abwesend dot de | Date: | Sat, 11 Feb 2006 15:18:18 +0000 |
| Subject: | note 61773 added to function.getmxrr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-103506@lists.php.net to get a copy of this message | ||
Concerning the message by 'rolf at rowi dot net' (do a check on a address containing a
subdomain) we could use:
$email = 'abc@etpc01.trier.fh-rpl.de';
$strDot = '.';
$strAfterAt = substr(strstr($email, '@'), 1);
$chunks = explode($strDot, $strAfterAt);
$cntChunks = count($chunks) - 1;
$strDomain = $chunks[($cntChunks-1)] . $strDot . $chunks[$cntChunks];
if (!getmxrr( $strDomain, $mxhosts )) {
echo 'Mailserver not found';
}
// $strDomain is set to 'fh-rpl.de';
----
Server IP: 194.153.94.11
Probable Submitter: 83.228.145.73
----
Manual Page -- http://www.php.net/manual/en/function.getmxrr.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61773
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61773&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61773&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61773&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61773&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61773&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61773&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61773&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61773&report=yes
Search -- http://master.php.net/manage/user-notes.php