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 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
                  • P PIEBALDconsult

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

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

                    One of my first jobs was to do quality assurance; it is now a natural impulse to try to break the work of others. :-D

                    Thou mewling ill-breeding pignut!

                    1 Reply Last reply
                    0
                    • A AspDotNetDev

                      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 Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #22

                      I tend to use Fuck@You.com for that.

                      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!

                        G Offline
                        G Offline
                        greldak
                        wrote on last edited by
                        #23

                        I do as well and find a few sites where the site itself will accept the email address but the validation email its supposed to send is never received.

                        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