function check_mail($email)
{
$test_mail=eregi('^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)+$',$email);
if ($test_mail)
{
list ($login, $domaine) = split ("@", $email,2);
if (checkdnsrr ($domaine, "MX"))
{
return TRUE;
} else
{
return FALSE;
}
} else
{
return FALSE;
}
}
I just posted your code so i can read it with colors 🙂
thanks!! 🙂