Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to check if email entered exists or not in QLineEdit ?
QtWS25 Last Chance

How to check if email entered exists or not in QLineEdit ?

Scheduled Pinned Locked Moved General and Desktop
qlineeditqt5.7.0
9 Posts 6 Posters 3.4k Views
  • 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.
  • AhtiA Offline
    AhtiA Offline
    Ahti
    wrote on last edited by
    #1

    Hi
    I want to check if the email entered in a QLineEdit does actually exist or not how could i do that ?

    what is a signature ?? Lol

    1 Reply Last reply
    0
    • thamT Offline
      thamT Offline
      tham
      wrote on last edited by
      #2

      use QRegExpValidator.

      1 Reply Last reply
      0
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on last edited by
        #3

        Hi
        Coming to your question where are storing the values to be checked?.
        with your QLineEdit value.

        Pradeep Kumar
        Qt,QML Developer

        AhtiA 1 Reply Last reply
        1
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          Hi
          If you mean to actual check that the email is in fact a real email. Not
          syntax wise but that an actual server has this actual email for an user then
          the short answer is. You cannot.
          Some email servers will report back "unknown user" some will just ignore you.
          So will report back that mail could not be delivered. some will not.

          So what we normally do is to use verification.
          You enter email.
          System sends you activation mail
          You click it.
          Email accepted.

          AhtiA 1 Reply Last reply
          5
          • mrjjM mrjj

            Hi
            If you mean to actual check that the email is in fact a real email. Not
            syntax wise but that an actual server has this actual email for an user then
            the short answer is. You cannot.
            Some email servers will report back "unknown user" some will just ignore you.
            So will report back that mail could not be delivered. some will not.

            So what we normally do is to use verification.
            You enter email.
            System sends you activation mail
            You click it.
            Email accepted.

            AhtiA Offline
            AhtiA Offline
            Ahti
            wrote on last edited by
            #5

            @mrjj
            Hi :)
            okay how can i send verfication link to an email address entered in QLineEdit from my app ?

            what is a signature ?? Lol

            mrjjM 1 Reply Last reply
            0
            • Pradeep KumarP Pradeep Kumar

              Hi
              Coming to your question where are storing the values to be checked?.
              with your QLineEdit value.

              AhtiA Offline
              AhtiA Offline
              Ahti
              wrote on last edited by
              #6

              @Pradeep-Kumar

              In LineEdit itself and checking if the email is correct or not whenever user clicks on submit button.

              what is a signature ?? Lol

              1 Reply Last reply
              0
              • AhtiA Ahti

                @mrjj
                Hi :)
                okay how can i send verfication link to an email address entered in QLineEdit from my app ?

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by mrjj
                #7

                @Ahti
                Hi It depends on what server you are planning to use to send the emails.
                Say you use a google account you can use SMTP and maybe

                https://github.com/xcoder123/SimpleSmtp_SSL_QT5

                1 Reply Last reply
                2
                • VRoninV Offline
                  VRoninV Offline
                  VRonin
                  wrote on last edited by
                  #8

                  There are a number of sites providing this service, most of them commercially.
                  http://verify-email.org/ has a free API limited to 5 checks an hour. https://emailhunter.co/ limits to 150 a month

                  "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                  ~Napoleon Bonaparte

                  On a crusade to banish setIndexWidget() from the holy land of Qt

                  1 Reply Last reply
                  5
                  • R Offline
                    R Offline
                    RobertJ
                    Banned
                    wrote on last edited by
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved