Re: simple email validation ereg
| From: | Alexander Skwar | Date: | Sun, 02 Jun 2002 20:42:00 +0000 |
| Subject: | Re: simple email validation ereg | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100329@lists.php.net to get a copy of this message | ||
Justin French wrote:
my aim will be to strip out anything that doesn't at least LOOK like like an email address.Well, instead of coming up with some "clever" regexp, I'd suggest to completely dump syntax checks. Instead, I only check if the host has a MX entry associated. If not, then this host either does not exist, or mails wouldn't get through. At any rate, it's not a valid adress.