Email
|
|
|
|
<?php #This is just an example, you'll have to figure
#out how to implement it into your own code :)
$email = "tim@phpgalaxy.com"
$domain = substr(strstr($email, '@'), 1); $x = getmxrr($domain, $mxs);
#$mxs[0] will return the first (or only) MX record
#of the domain. If $mxs[0] has a value, the email
#address is good, if $mxs[0] comes up empty, the
#domain has no MX record(s) and cannot receive mail.
?>
|
|
|
Usage Example
|
|
|
Rate This Script
|
|
|
|