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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to verify email address?

Status
Not open for further replies.

scottew

IS-IT--Management
Mar 6, 2003
492
US
Hello everyone,

I have a form on a website so that people can sign up to receive a newsletter from our company. When the user signs up, I would like to send them a link for them to click on to verify that they did sign up for the news letter.

I have the form and the email part done, I just don't know how to go about sending the link and how to process the link once it is clicked on.

Any suggestions would be appreciated.

Thanks,
Scott
 
Do you want send the person an e-mail with a link to confirm that they are the ones that registered? Kind of like a registration confirmation?

The way I can think of is:
1. Create a column in the dB, say isEnrolled. Set that column name to 0 initially when a user signs-up.
2. Then generate an e-mail to all users where isEnrolled=0. In the e-mail have a confirm link that passes a unique encrypted key and the userID.
3. Once the link is clicked or entered in the browser, UPDATE the table and set the isEnrolled=1.



____________________________________
Just Imagine.
 
That is exactly what I am trying to do. I am just not sure how to pass an encrypted key link in the email.

Thanks,
Scott
 
user registration:
user signs up, but is not active (db field called active, value=0)

generate activation code with createUUID(), and save it in the users table.
<cfset newActivationcode = createUUID()>
Save that in the user table as well.

Send the newley registered user an email with a link containing the activation code.

<a href="activateUser.cfm?code=#newActivationCode#">activate...</a>

Process Activation Code (activateUser.cfm)

Run query on user table looking up rows where activationcode = url.code (activation code from the link you sent in email)

If a row is returned, update that user to active = 1

during the logon proccess, only allow users to log on if active = 1 for that user.



Successfull registration sends

Kevin

Phase 1: Read the CFML Reference
Phase 2: ???
Phase 3: Profit!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top