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?
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to