Results 1 to 4 of 4

Thread: Email address validator

  1. #1

    Thread Starter
    Member micromax's Avatar
    Join Date
    Mar 2001
    Location
    England
    Posts
    61

    Email address validator

    Hi

    I need to create an email validator

    me thinks I will use Winsock?


    Any ideas, tips, sourcecode appreciated.


    thx

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Check if there's a '@' and a '.' in order in the string. What exactly are you trying to do - It would be extremely difficult to determine if an address is a real, working address without emailing them a message asking them to reply and seeing what you get back.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Member micromax's Avatar
    Join Date
    Mar 2001
    Location
    England
    Posts
    61
    you said ------ :
    It would be extremely difficult to determine if an address is a real, working address without emailing them a message asking them to reply and seeing what you get back.

    This is exactly what I want to do - there are commercial apps out there but I need this functionality in my VB6 app.

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    There is an SMTP command (I think VRFY?) that allows you to check if an email address exists. You will have to look at the email address's domain, look up the mail server for that domain, and then connect to the mail server, issue the HELO command, then then command to verify the user name / email account. The problem is not all mail servers will support or correctly answer the command - they'll always verify any address.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

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