Results 1 to 9 of 9

Thread: [RESOLVED] how to validate email id

  1. #1

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Resolved [RESOLVED] how to validate email id

    how to validate email id and web site name

  2. #2
    Lively Member
    Join Date
    Nov 2005
    Location
    Bristol/Bath
    Posts
    85

    Re: how to validate email id

    Best way to validate an email address would be to read in the address to an array, then step through the characters ensuring there is

    1 or more chars followed by '@' followed by 1 or more chars followed by '.' followed by 1 or more chars. Actually enuring the mailbox is valid may be harder.
    VS.Net Pro 2003, .NET 1.1

    My Photography portfolio:
    http://www.ephotozine.com/user.cfm?user=24834

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: how to validate email id

    You can check to see if it is in a valid format, but you won't be able to verify that it actually does exist.

    Have a look here

  4. #4
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: how to validate email id

    I would send an email verification mail to the address with a random number in it and then ask them to enter the random ID into the program to validate the email id
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

  5. #5
    Lively Member
    Join Date
    Nov 2005
    Location
    Bristol/Bath
    Posts
    85

    Re: how to validate email id

    A verification email would be a good way to check an acount exists, you just need a way to generate verifiable codes. As for the web site, maybe you could connect to and try to recover some bytes of the homepage (a simple GET command for the index page) - if you get anything returned other than a 404 you can assume it exists.

    HTH
    VS.Net Pro 2003, .NET 1.1

    My Photography portfolio:
    http://www.ephotozine.com/user.cfm?user=24834

  6. #6

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: how to validate email id

    any code

  7. #7
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: how to validate email id

    I think most people would help you with code if you tried it on your own and then posted problems that you encountered, rather than expecting others to code it for you.

    If you want code for something specific then ask & show us what you've tried and I would be happy to help.
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

  8. #8
    Lively Member
    Join Date
    Nov 2005
    Location
    Bristol/Bath
    Posts
    85

    Re: how to validate email id

    You could use regul.ar expressiosn to validate the email address
    http://visualbasic.about.com/od/usin...l/blregexa.htm
    http://www.regular-expressions.info/dotnet.html

    And maybe the browser object to connect to the site, havnt used this object beofre , maybe someone else can provide you some code

    hth
    VS.Net Pro 2003, .NET 1.1

    My Photography portfolio:
    http://www.ephotozine.com/user.cfm?user=24834

  9. #9

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: how to validate email id

    thanks all spacially hack

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