Got a function that migth do both thricks at once (found on PHP.NET:

    function valid_email($email)
    {
     #if
(eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}$",
$email, $check))
     if
(eregi("^[0-9a-z_]([_\.-]?[0-9a-z])*@[0-9a-z][0-9a-z\.-]*\.[a-z]{2,4}\.?$",
$email, $check))
     {
   if ( getmxrr(substr(strstr($check[0], '@'), 1), $validate_email_temp) )
      {
       return TRUE;
      }

     }
     return FALSE;
    }

MVG mary

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to