Verify that the mail is correctly written.
function bad_address($epost) {
if (!eregi("[@[:space:]]+@([[:alnum:]-]+.)+[[:alnum:]][[:alnum:]][[:alnum:]]?$", $epost)) {
return 1;
} else {
return 0;
} // endif
} // endfunc
Check if the mail's domainname exists...
function check_dns($epost){
$ar = split("@",$epost,3) ;
$host = $ar[1] ;
if (checkdnsrr($host,"ANY")) {
return 1 ; // Valid hostname
} else {
return 0 ; // Not a valid domainname
}
}
Maybe you can use this... I don't know... I use it.