Get Website Lowest price!

Wordpress Experts!

×

php up to date

Find Email address Has Valid MX record

Find Email address Has Valid MX record


<?php
function domain_exists($email, $record = 'MX'){
list($user, $domain) = split('@', $email);
return checkdnsrr($domain, $record);
}
if(domain_exists('user@davidwalsh.name')) {
echo('This MX records exists; I will accept this email as valid.');
}
else {
echo('No MX record exists;  Invalid email.');
}
?>
SHARE

vmk

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment