If You Can't Do Email Validation Right
-
Don't do it at all. I'm tired of seeing messages like this, all because my email address is a single character (e.g., a@abc.com). I have a proxy email address for situations like this, but it's annoying that I have to do that. :sigh: Recently, I've seen this on an airline website and on the website in the above screenshot. One large company, and one small one. I'm tempted to try this with Code Project just for the heck of it. :rolleyes:
-
Don't do it at all. I'm tired of seeing messages like this, all because my email address is a single character (e.g., a@abc.com). I have a proxy email address for situations like this, but it's annoying that I have to do that. :sigh: Recently, I've seen this on an airline website and on the website in the above screenshot. One large company, and one small one. I'm tempted to try this with Code Project just for the heck of it. :rolleyes:
There's always things people don't expect... For example, my Japanese credit card was routinely rejected in the UK because it has an unusually long valid-till date (+5 years) and the pull down box for entering the valid-till date didn't go that far. :thumbsdown: My email address has a "-" in the bit after the "@", which confused a few sites in the old days but it seems OK these days. :cool:
Almost, but not quite, entirely unlike... me...
-
There's always things people don't expect... For example, my Japanese credit card was routinely rejected in the UK because it has an unusually long valid-till date (+5 years) and the pull down box for entering the valid-till date didn't go that far. :thumbsdown: My email address has a "-" in the bit after the "@", which confused a few sites in the old days but it seems OK these days. :cool:
Almost, but not quite, entirely unlike... me...
PaulowniaK wrote:
My email address has a "-" in the bit after the "@", which confused a few sites in the old days but it seems OK these days
Somebody I know has a "-" in his name. He has had issues with that, and ever since he told me about it I have made sure any validation I do allows for as many characters as is possible.
-
Don't do it at all. I'm tired of seeing messages like this, all because my email address is a single character (e.g., a@abc.com). I have a proxy email address for situations like this, but it's annoying that I have to do that. :sigh: Recently, I've seen this on an airline website and on the website in the above screenshot. One large company, and one small one. I'm tempted to try this with Code Project just for the heck of it. :rolleyes:
Some Indian Government websites have told me tings like "You cannot use a 'numeric value' in the address field". :omg:
"Real men drive manual transmission" - Rajesh.
-
Some Indian Government websites have told me tings like "You cannot use a 'numeric value' in the address field". :omg:
"Real men drive manual transmission" - Rajesh.
Simples:
One Two Three Four First Street Apt One Zero One
:rolleyes:
-
Don't do it at all. I'm tired of seeing messages like this, all because my email address is a single character (e.g., a@abc.com). I have a proxy email address for situations like this, but it's annoying that I have to do that. :sigh: Recently, I've seen this on an airline website and on the website in the above screenshot. One large company, and one small one. I'm tempted to try this with Code Project just for the heck of it. :rolleyes:
AspDotNetDev wrote:
I'm tempted to try this with Code Project just for the heck of it.
Chris scurries into a corner to look at eMail validation ...
MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')
-
There's always things people don't expect... For example, my Japanese credit card was routinely rejected in the UK because it has an unusually long valid-till date (+5 years) and the pull down box for entering the valid-till date didn't go that far. :thumbsdown: My email address has a "-" in the bit after the "@", which confused a few sites in the old days but it seems OK these days. :cool:
Almost, but not quite, entirely unlike... me...
My email address used to be maxxx;drop table user;@gmail.com Had all sorts of problems using it!
MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')
-
AspDotNetDev wrote:
I'm tempted to try this with Code Project just for the heck of it.
Chris scurries into a corner to look at eMail validation ...
MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')
:laugh: This too is what I imagined.
-
My email address used to be maxxx;drop table user;@gmail.com Had all sorts of problems using it!
MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')
Your cousin is called Bobby, right? Cheers, Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
Your cousin is called Bobby, right? Cheers, Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
No, Bob's my Uncle!
MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')
-
There's always things people don't expect... For example, my Japanese credit card was routinely rejected in the UK because it has an unusually long valid-till date (+5 years) and the pull down box for entering the valid-till date didn't go that far. :thumbsdown: My email address has a "-" in the bit after the "@", which confused a few sites in the old days but it seems OK these days. :cool:
Almost, but not quite, entirely unlike... me...
-
Don't do it at all. I'm tired of seeing messages like this, all because my email address is a single character (e.g., a@abc.com). I have a proxy email address for situations like this, but it's annoying that I have to do that. :sigh: Recently, I've seen this on an airline website and on the website in the above screenshot. One large company, and one small one. I'm tempted to try this with Code Project just for the heck of it. :rolleyes:
Most annoying one I've had recently is a Dutch site that required me to have one of the Dutch "of" words in my name -- I ended up having to rename myself as "Mark de Wallace", just to get past the form validation. I would have used "Mark van Engeland", but I've used it elsewhere, and didn't want the association.
I wanna be a eunuchs developer! Pass me a bread knife!
-
PaulowniaK wrote:
My email address has a "-" in the bit after the "@", which confused a few sites in the old days but it seems OK these days
Somebody I know has a "-" in his name. He has had issues with that, and ever since he told me about it I have made sure any validation I do allows for as many characters as is possible.
-
Don't do it at all. I'm tired of seeing messages like this, all because my email address is a single character (e.g., a@abc.com). I have a proxy email address for situations like this, but it's annoying that I have to do that. :sigh: Recently, I've seen this on an airline website and on the website in the above screenshot. One large company, and one small one. I'm tempted to try this with Code Project just for the heck of it. :rolleyes:
The only way to validate an email address is to send an email to it, so do 'soft validation': a warning that does not prevent form submission
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Chinese Proverb] Jonathan C Dickinson (C# Software Engineer)
-
Don't do it at all. I'm tired of seeing messages like this, all because my email address is a single character (e.g., a@abc.com). I have a proxy email address for situations like this, but it's annoying that I have to do that. :sigh: Recently, I've seen this on an airline website and on the website in the above screenshot. One large company, and one small one. I'm tempted to try this with Code Project just for the heck of it. :rolleyes:
I was once very seriously advised by a mail server admin not to use "/" in email addresses before "@" because it's not a valid character there. I told him to go read the RFC, which he refused to do. I can only say "WTF!?".
-
I too have a long, double-barreled name. I take the greatest exception to website forms that tell me "Your name is invalid". That's a sure way to upset your potential customers very quickly indeed. My company name is long, and hence my email address is too. It's usually OK online but had to fill in a passport form this weekend where there weren't enough characters... :-(
-
The only way to validate an email address is to send an email to it, so do 'soft validation': a warning that does not prevent form submission
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Chinese Proverb] Jonathan C Dickinson (C# Software Engineer)
Jonathan C Dickinson wrote:
The only way to validate an email address is to send an email to it
Somewhere along the line something's got to validate it. If you are using some sort of framework, then the framework will likely do the necessary validation for you, but if you are using the raw SMTP protocol or something that is a thin wrapper around it, failing to check for characters that are part of the protocol (e.g. comma, colon, semi-colon or new line characters) opens you up to injection attack vulnerability.
-
Don't do it at all. I'm tired of seeing messages like this, all because my email address is a single character (e.g., a@abc.com). I have a proxy email address for situations like this, but it's annoying that I have to do that. :sigh: Recently, I've seen this on an airline website and on the website in the above screenshot. One large company, and one small one. I'm tempted to try this with Code Project just for the heck of it. :rolleyes:
As developers it is our duty to try to break the work of others. :cool:
-
Don't do it at all. I'm tired of seeing messages like this, all because my email address is a single character (e.g., a@abc.com). I have a proxy email address for situations like this, but it's annoying that I have to do that. :sigh: Recently, I've seen this on an airline website and on the website in the above screenshot. One large company, and one small one. I'm tempted to try this with Code Project just for the heck of it. :rolleyes:
Most websites expect an email address to be longer than 1 char, this is because when people don't want to give their email address, they usually use a@a.com or sometihng that short.
CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...
-
Most websites expect an email address to be longer than 1 char, this is because when people don't want to give their email address, they usually use a@a.com or sometihng that short.
CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...
Which wouldn't be of much use, because validation would fail, then they'd change it to ab@ab.com.