Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. If You Can't Do Email Validation Right

If You Can't Do Email Validation Right

Scheduled Pinned Locked Moved The Lounge
com
23 Posts 15 Posters 27 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #1

    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:

    Thou mewling ill-breeding pignut!

    P R L M J 8 Replies Last reply
    0
    • A AspDotNetDev

      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:

      Thou mewling ill-breeding pignut!

      P Offline
      P Offline
      PaulowniaK
      wrote on last edited by
      #2

      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...

      A L I 3 Replies Last reply
      0
      • P PaulowniaK

        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...

        A Offline
        A Offline
        AspDotNetDev
        wrote on last edited by
        #3

        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.

        Thou mewling ill-breeding pignut!

        B G 2 Replies Last reply
        0
        • A AspDotNetDev

          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:

          Thou mewling ill-breeding pignut!

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          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.

          A 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            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.

            A Offline
            A Offline
            AspDotNetDev
            wrote on last edited by
            #5

            Simples:

            One Two Three Four First Street Apt One Zero One

            :rolleyes:

            Thou mewling ill-breeding pignut!

            1 Reply Last reply
            0
            • A AspDotNetDev

              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:

              Thou mewling ill-breeding pignut!

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              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')

              A 1 Reply Last reply
              0
              • P PaulowniaK

                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...

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                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')

                P 1 Reply Last reply
                0
                • L Lost User

                  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')

                  A Offline
                  A Offline
                  AspDotNetDev
                  wrote on last edited by
                  #8

                  :laugh: This too is what I imagined.

                  Thou mewling ill-breeding pignut!

                  1 Reply Last reply
                  0
                  • L Lost User

                    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')

                    P Offline
                    P Offline
                    Peter_in_2780
                    wrote on last edited by
                    #9

                    Your cousin is called Bobby, right? Cheers, Peter

                    Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

                    L 1 Reply Last reply
                    0
                    • P Peter_in_2780

                      Your cousin is called Bobby, right? Cheers, Peter

                      Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      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')

                      1 Reply Last reply
                      0
                      • P PaulowniaK

                        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...

                        I Offline
                        I Offline
                        Indivara
                        wrote on last edited by
                        #11

                        My name is routinely rejected in Japan for various reasons. Too long, invalid characters, too many names, etc

                        1 Reply Last reply
                        0
                        • A AspDotNetDev

                          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:

                          Thou mewling ill-breeding pignut!

                          M Offline
                          M Offline
                          Mark_Wallace
                          wrote on last edited by
                          #12

                          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!

                          1 Reply Last reply
                          0
                          • A AspDotNetDev

                            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.

                            Thou mewling ill-breeding pignut!

                            B Offline
                            B Offline
                            Bassam Abdul Baki
                            wrote on last edited by
                            #13

                            I do and I continue to have problems with it and now I've told you about it.

                            Web - BM - RSS - Math - LinkedIn

                            D 1 Reply Last reply
                            0
                            • A AspDotNetDev

                              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:

                              Thou mewling ill-breeding pignut!

                              J Offline
                              J Offline
                              Jonathan C Dickinson
                              wrote on last edited by
                              #14

                              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)

                              S 1 Reply Last reply
                              0
                              • A AspDotNetDev

                                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:

                                Thou mewling ill-breeding pignut!

                                F Offline
                                F Offline
                                Florin Jurcovici
                                wrote on last edited by
                                #15

                                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!?".

                                1 Reply Last reply
                                0
                                • B Bassam Abdul Baki

                                  I do and I continue to have problems with it and now I've told you about it.

                                  Web - BM - RSS - Math - LinkedIn

                                  D Offline
                                  D Offline
                                  DerekT P
                                  wrote on last edited by
                                  #16

                                  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... :-(

                                  1 Reply Last reply
                                  0
                                  • J Jonathan C Dickinson

                                    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)

                                    S Offline
                                    S Offline
                                    svella
                                    wrote on last edited by
                                    #17

                                    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.

                                    1 Reply Last reply
                                    0
                                    • A AspDotNetDev

                                      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:

                                      Thou mewling ill-breeding pignut!

                                      P Offline
                                      P Offline
                                      PIEBALDconsult
                                      wrote on last edited by
                                      #18

                                      As developers it is our duty to try to break the work of others. :cool:

                                      A 1 Reply Last reply
                                      0
                                      • A AspDotNetDev

                                        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:

                                        Thou mewling ill-breeding pignut!

                                        R Offline
                                        R Offline
                                        RafagaX
                                        wrote on last edited by
                                        #19

                                        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...

                                        A 1 Reply Last reply
                                        0
                                        • R RafagaX

                                          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...

                                          A Offline
                                          A Offline
                                          AspDotNetDev
                                          wrote on last edited by
                                          #20

                                          Which wouldn't be of much use, because validation would fail, then they'd change it to ab@ab.com.

                                          Thou mewling ill-breeding pignut!

                                          P 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups