Re: simple email validation ereg

From: Date: Mon, 03 Jun 2002 04:10:29 +0000
Subject: Re: simple email validation ereg
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-100365@lists.php.net to get a copy of this message
On Monday 03 June 2002 04:42, Alexander Skwar wrote: > 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. The lack of an MX record doesn't necessarily mean mail will not get through, so you cannot use that as a test for whether the address is valid. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Who needs friends when you can sit alone in your room and drink? */

« previous php.general (#100365) next »