Results 1 to 7 of 7

Thread: Email Varification

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2012
    Posts
    41

    Question Email Varification

    Hello,

    I'm making a program, in wich I need to varify an email. Not by format(regular expressions), but if it actualy exists or not.
    Is this possible without using a special library or dll? Can it be done with normal objects like SmtpClient, TcpClient, methods in System.Net?

    Thank you for your time,
    -suzi9spal

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,371

    Re: Email Varification

    A quick google search brought me here. It imports System.Net
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: Email Varification

    Seems like the only way to truly verify an email address is send an email to it and make the user respond to that email.

  4. #4
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Email Varification

    Quote Originally Posted by DataMiser View Post
    Seems like the only way to truly verify an email address is send an email to it and make the user respond to that email.
    Not necessarily, I've seen sites that take send emails for registration refuse invalid email addresses presumably before sending them.

    Here is a site that can actually do it. They even show portions of the SMTP protocol transmissions so that may give clue as to how its achieved.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  5. #5
    Hyperactive Member
    Join Date
    May 2009
    Posts
    274

    Re: Email Varification

    There are several ways to authenticate an email address, from simple format to actually verifying the server exists and down to the email address exists on said server.

  6. #6
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: Email Varification

    Yes, my point was that even if a valid email address is given it is not an indication that it is the valid email address of the person providing it so it really depends on the level of validation you are looking for. If you want to be sure that the user entered the correct email address then the only way I know of to confirm is by receiving a response from that address.

  7. #7
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Email Varification

    That's why most sites send an activation link when you sign up. If you typed in the wrong valid address then you're screwed. I don't think there is a way to get around that other than vigilance by the user typing the address.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width