Sometimes you don't want to have your application exposed to an unconstrained wait outside of your control.
Sometimes your application may not have access/permissions/etc. to open sockets. (This is actually a common security precaution in some CGI environments). Owen On Mar 12, 2012, at 4:22 PM, Jeroen van Aart wrote: > Owen DeLong wrote: >> http://en.wikipedia.org/wiki/Email_address#Valid_email_addresses >> You may have noticed my particular test wouldn't accept foo!bar!ucbvax!user >> format addresses, either. >> It works well enough for my purposes. I did not claim it was perfect. > > Why not leave it to the MTA to decide what is a valid address? It only > requires a few SMTP commands to the MTA to know if it will accept it. > Normally the MTA will tell you after the "rcpt to:" command if it will accept > it (i'm ignoring some badly behaving MTAs who will swallow anything and then > bounce, no point trying to work around such crap). > > No need to re-invent the wheel, unless you're actually creating an MTA or > something similar. > > Who is to say that even IF your address verifier verifies it as valid that > the MTA is configured to allow it (or the other way around)? MTAs can be > arbitrarily configured to (dis)allow "bang path" addresses, IP addresses etc. > > Regards, > Jeroen > > -- > Earthquake Magnitude: 5.0 > Date: Monday, March 12, 2012 17:55:10 UTC > Location: Kepulauan Talaud, Indonesia > Latitude: 3.0222; Longitude: 127.0054 > Depth: 35.00 km