eregi is vervangen door preg_match; en split door explode.
Werkt prima, geen deprecated method meldingen meer!
function checkmail($email)
{
if(preg_match("/^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}$/i", $email))
{
$mailDomain = explode("@",$email);
if (checkdnsrr($mailDomain[1], "MX")) {
return TRUE;
}
}
return FALSE;
}