[PHP] Check mail user

2001-10-24 Thread Rosen
Hi, can someone give me script for syntax check of username for mail server ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] Check mail user

2001-10-24 Thread Valentin V. Petruchek
Subject: [PHP] Check mail user Hi, can someone give me script for syntax check of username for mail server ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

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,