http://us2.php.net/manual/en/function.checkdnsrr.php
I did a search on this site and only found a dozen or so questions about it which leads me to think not very many people use this function for such things as email validation.
Just out of curiosity, does anyone rely on this function or a similar function for email verification?
http://www.sitepoint.com/article/users- ... ddress-php
Code: Select all
// take a given email address and split it into the
username and domain.
list($userName, $mailDomain) = split("@", $email);
if (checkdnsrr($mailDomain, "MX")) {
// this is a valid email domain!
}
else {
// this email domain doesn't exist! bad dog! no biscuit!
}