note 9555 deleted from function.ereg by jimw

From: Date: Fri, 02 Nov 2001 01:22:11 +0000
Subject: note 9555 deleted from function.ereg by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20124@lists.php.net to get a copy of this message
10x to all for ideas and help. Result: For checking validity of an email. function checkmail ($email) { if (eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](g|l|m|pa|t|u|v)?$", $email, $check)) { if (checkdnsrr(substr(strstr($check[0], '@'), 1), "ANY")) { return TRUE; } } return FALSE; } Of course the best way is to test if there is some kind of mail deamon run on specified host.

« previous php.notes (#20124) next »