so mark...

what you're saying is that i should write a simple perl app that does the
email validation, and call it from the php app, passing it the email address
to check!!!!

-bruce



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Thomas, Mark - BLS CTR
Sent: Friday, September 16, 2005 5:49 AM
To: '[EMAIL PROTECTED]'; 'perl-win32-users'
Subject: RE: regex expression to determine if i have a valid email!!


> i've got a php app

Say it isn't so! :)

> i finally figured that someone here, might have the exact
> soln to my prob!

1. Make sure it is formatted correctly, as per RFC 822. To do that, there is
one big scary regex created by Jeffrey Friedl (author of Mastering Regular
Expressions). If you check the link that $Bill gave you to Email::Valid, the
regular expression is in there.

2. Make sure the domain is valid, and resolves to an IP address

3. Make sure an MX record is defined for the domain, and the mail host is
accessible.

4. (Optional) Check the ip against selected blacklist(s).

Of course, the easiest way to do this is Perl. Email::Valid does 1-3 for
you.

- Mark.

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to