Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opinion on verifying email..

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
What is the best way to verify and email, what do you send as a "vefication" code to the user..etc?

I think the way I did it works pretty nicley, but was wondering what you all use. www.vzio.com
ASP WEB DEVELOPMENT



 
Does anyone use email verification? www.vzio.com
ASP WEB DEVELOPMENT



 
i use a regular expression to validate that the user has entered their email address in a valid format (the code for this function is below). if you are looking to verify that the email address they give you is actually theirs, then perhaps you could generate a random password with a link, and then email them, and set up a receving page to log the fact they have responded to the generated email, and thus have given you a legitimate address.

good luck!


Code:
Function isEmail(theEmail)
    With New RegExp
        .Pattern = "^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$"
        .IgnoreCase = True
        .Global = True
        If .Test(theEmail) Then
            isEmail = True
        Else
            isEmail = False
        End If
    End With
End Function



p.s. the stupid smiley face |-) should be replaced with "- )" without the space in between. (lame tek-tip feature, huh?)
i.e., the regexp should look like this, with NO SPACES (spaces inserted here to prevent auto-smiley)

^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.| - )[A-Za-z0-9]+)*\.[A-Za-z0-9]+$
 
you can put [ code ] [ / code ] around your code and it wont show smiles. Or you can uncheck - Emoticons

Thanks for your input, I was mainly talking about verifing that the email is theirs..

I use a component, called dynu and it has encryption in it, so I email a link like...
Code:
/verify?email=jbo@vzio.com&v=15A6A39CC18D7535AB14CFB871C69C24B2F5A07D30AB6DA3
And the code is there userID encrypted...

Works great.
www.vzio.com
ASP WEB DEVELOPMENT



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top