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. General Programming
  3. C#
  4. Check whether an Email Id exists or not [modified]

Check whether an Email Id exists or not [modified]

Scheduled Pinned Locked Moved C#
help
6 Posts 5 Posters 0 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.
  • P Offline
    P Offline
    pearlswathi
    wrote on last edited by
    #1

    Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail. I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem. Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.

    modified on Monday, October 13, 2008 6:00 AM

    D P M 3 Replies Last reply
    0
    • P pearlswathi

      Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail. I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem. Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.

      modified on Monday, October 13, 2008 6:00 AM

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      I'm afraid you can't do it. There is no central registry of email addresses, so you can only identify a valid email by sending them a mail and getting them to reply back.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles | MoXAML PowerToys

      J 1 Reply Last reply
      0
      • P pearlswathi

        Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail. I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem. Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.

        modified on Monday, October 13, 2008 6:00 AM

        D Offline
        D Offline
        DaveyM69
        wrote on last edited by
        #3

        The only sure fire way is to send an email to the address. You can use regex to check if the address is technically valid, dns lookup to verify the domain exists and has mx records but that's about as far as you can go without sending an email.

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Expect everything to be hard and then enjoy the things that come easy. (code-frog)

        1 Reply Last reply
        0
        • P Pete OHanlon

          I'm afraid you can't do it. There is no central registry of email addresses, so you can only identify a valid email by sending them a mail and getting them to reply back.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles | MoXAML PowerToys

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          Pete O'Hanlon wrote:

          so you can only identify a valid email by sending them a mail

          Checking the MX record notwithstanding. Granted not a perfect method for numerous reasons, but one step in between email-address-looks-valid and send-email-address-mail

          P 1 Reply Last reply
          0
          • J J4amieC

            Pete O'Hanlon wrote:

            so you can only identify a valid email by sending them a mail

            Checking the MX record notwithstanding. Granted not a perfect method for numerous reasons, but one step in between email-address-looks-valid and send-email-address-mail

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            J4amieC wrote:

            Granted not a perfect method for numerous reasons

            It would be a fair start, but as you note - not perfect.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles | MoXAML PowerToys

            1 Reply Last reply
            0
            • P pearlswathi

              Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail. I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem. Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.

              modified on Monday, October 13, 2008 6:00 AM

              M Offline
              M Offline
              michaelvdnest
              wrote on last edited by
              #6

              this[^]is in asp but it should give you some ideas

              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