note 8178 modified in mail by jmoore

From: Date: Wed, 27 Dec 2000 14:55:23 +0000
Subject: note 8178 modified in mail by jmoore
Groups: php.notes 
Request: Send a blank email to php-notes+get-9123@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 ] http://www.php.net/manual/function.mail.php

« previous php.notes (#9123) next »