note 8178 deleted from function.mail by jimw

From: Date: Wed, 31 Oct 2001 23:04:35 +0000
Subject: note 8178 deleted from function.mail by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19864@lists.php.net to get a copy of this message
Here's my way to check if an E-mail address is valid: function checkmail_mx ($email) { if (eregi("^[_\.0-9a-z-]+@([0-9a-z][-0-9a-z\.]+)\.([a-z]{2,3}$)", $email, $check)) { if (getmxrr($check[1].".".$check[2], $temp)) { return true; } else { return false; } } else { return false; } } // www.eksperten.dk [Editor: There is also a very good class for this at http://phpclasses.upperdesign.com ]

« previous php.notes (#19864) next »