Verify Email Address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rrocket
    New Member
    • Aug 2007
    • 116

    Verify Email Address

    I am trying to verify that the email addresses entered into our site are valid. Basically are they fake addresses or not and if I send them an email there will be an inbox associated with that address.

    All I keep finding on the web is info for validating with regex... If anyone knows how to do this or knows of a site that could help, please let me know.

    Thanks.
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    regex can only make sure that the email adddress entered is sytacticaly correct

    i.e. there is an '@' in between the words and end with a .com, /.edu, or other domains (list goes bigger, as you go international)

    To check if an email actually exists, a good way would be to send an email, if a failure email is recieved from the email provider, you should move that email entered into your own database, to check against before you verify another email.

    Comment

    • Kenster
      New Member
      • May 2008
      • 6

      #3
      Hello,

      You don't HAVE to use Regex (Although it a lot more in depth). I would suggest for starting out you can to EmailAddress.Co ntains("@"); and EmailAddress.Co ntains(".");

      This is a start. As for verifying, you can just make a random numbers then make concat a string together.

      string toSend = "Please click the link below to register : http://MyWebSite.Com/WebMail/Register_" + EmailAddress + "_Code" + RandomNumber + ";

      Granted you would have to store the ID in MySql for verification back.

      Comment

      Working...