Email validator and report why?

Soldato
Joined
12 Dec 2006
Posts
5,901
I'm tweaking some email validation code and can't see why its rejecting some emails. So I'd to check it with something else. But I don't just want to know that its valid/invalid but the reason why?

Anyone know a tool online/offline that does this?
 
I'm tweaking some email validation code and can't see why its rejecting some emails. So I'd to check it with something else. But I don't just want to know that its valid/invalid but the reason why?

Anyone know a tool online/offline that does this?

I'll be guessing that's it's just based on a regular expression of the form
^.+?@.+?\..+

If you show us some code or examples I'm sure we could figure out the problem in less time than it takes you to say "poopdy poopdy pants"
 
Its a MS SQL function. I'm cleaning up a database.

http://www.databasejournal.com/scripts/article.php/3089661/Email-Validation-Function.htm

Its triming leading and trailing spaces but not some trailing white space that must have some other ASC charachters. Hard to give an example as I don't know what causing it, and I can't give you the specific email address. But its something like [email protected] which is coming back as invalid but it isn't. Don't know if theres something else causing it either.

Some of the online checkers of Email are telling me some email addresses I try are invalid, when I know they are ok, so hard to trust them. None tell you why an email fails either.
 
Its a MS SQL function. I'm cleaning up a database.

http://www.databasejournal.com/scripts/article.php/3089661/Email-Validation-Function.htm

Its triming leading and trailing spaces but not some trailing white space that must have some other ASC charachters. Hard to give an example as I don't know what causing it, and I can't give you the specific email address. But its something like [email protected] which is coming back as invalid but it isn't. Don't know if theres something else causing it either.

Some of the online checkers of Email are telling me some email addresses I try are invalid, when I know they are ok, so hard to trust them. None tell you why an email fails either.

Well the MS SQL function shouldn't be returning [email protected] as bad at all. It should be highlighting
[1] Empty / blank input
[2] Input with of ; : , / will be returned as bad
[3] Emails with no or more than one @ sign.

Try checking a few "common" issues like entering a \n or \t or something before or after the email and see if that cocks it up
 
Back
Top Bottom