Re: [PHP] Check mail user

2001-10-24 Thread Kodrik
Like this? function checkmail ($email) { if (eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z][a-z][a-z]?$", $email, $check)) { if (checkdnsrr(substr(strstr($check[0], '@'), 1), "ANY")) { return TRUE; } } return FALSE; } On Wednesday 24 October 2001 03:24 am, R

Re: [PHP] Check mail user

2001-10-24 Thread Valentin V. Petruchek
If I understand you properly you need smth like this function checkmail ($email) { return (eregi("^[_\.0-9a-z-]+@([0-9a-z][-0-9a-z\.]+)\.([a-z]{2,3}$)", $email, $check)); } - Original Message - From: "Rosen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 10