Check e-mail address

<?php
function check_emailaddress($email){
  if(
eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](g|l|m|pa|t|u|v)?$", $email, $check)) {
    if(!
checkdnsrr(substr(strstr($check[0], '@'), 1), "ANY")) {
      return
FALSE;
    }
  } else {
    return
FALSE;
  }
}
?>
Knowledge keywords: