Re: [PHP] simple email validation ereg

2002-06-05 Thread Miguel Cruz
On Mon, 3 Jun 2002, Alexander Skwar wrote: > So sprach Jason Wong am 2002-06-03 um 12:10:29 +0800 : >> 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. > > It will not? Do you have an example? H

Re: [PHP] simple email validation ereg

2002-06-03 Thread Jason Wong
On Monday 03 June 2002 21:35, Alexander Skwar wrote: > So sprach Jason Wong am 2002-06-03 um 12:10:29 +0800 : > > 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. > > It will not? Do you have an

Re: [PHP] simple email validation ereg

2002-06-03 Thread Alexander Skwar
So sprach Jason Wong am 2002-06-03 um 12:10:29 +0800 : > 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. It will not? Do you have an example? How is a mail server supposed to know where the mail s

Re: [PHP] simple email validation ereg

2002-06-02 Thread Jason Wong
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

Re: [PHP] simple email validation ereg

2002-06-02 Thread Alexander Skwar
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 t

Re: [PHP] simple email validation ereg

2002-06-02 Thread Analysis & Solutions
Hi Justin: On Sun, Jun 02, 2002 at 02:13:40PM +1000, Justin French wrote: > > (anything)@(anything) followed by 1 or more (.anything) So, what ereg expressions have you tried thus far? It's far cooler to come to the list saying, "I tried x, and it's generating error y, does anyone have an id

Re: [PHP] simple email validation ereg

2002-06-01 Thread Clay Loveless
Maybe I'm biased, but if you grab validateEmailFormat.php from www.killersoft.com, you'd be able to do something as simple as this: validateEmailFormat.php is a translation of the Perl regular expression that's widely considered to be the defintive test of a valid RFC822 address. Can't go wrong