Solved

VB.net Email to verify email address

Posted on 2014-01-19
5
602 Views
Last Modified: 2014-01-22
Hi

I want to register users for my app by emailing them a link to verify their email address.
How does this process usually work in the background. Is it a link to a web page or is there code in the actual email. Just need a little advice on how to achieve this.
I am planning to register users in my cloud SQL database.

Thanks
0
Comment
Question by:murbro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 18

Accepted Solution

by:
Rajar Ahmed earned 250 total points
ID: 39792162
You can follow these steps to move forward .
Activation Process :
     
   Step 1 :  Create columns  
               1. activation_code  some random characters which can stay unique always .
               2. Activated - Set default to 'N'

   Step 2 : Insert a activation code while registering and then send the code as a query string to the email id user has registered

  Like :  www.yourwebsite.com/landingpage.aspx?activation_code = asdfd123dfa


  Step 3 : Once user clicks the link from the mail received , process the verification_code on the query string on landingpage.aspx  
   like , if Request.QueryString("activation_code")<>"" then
           'Read from data base using activation_code
           'Update the activate column to 'Y'
   end if

Thanks&Regards
Meeran03
0
 
LVL 25

Assisted Solution

by:Lee Savidge
Lee Savidge earned 125 total points
ID: 39792177
In addition to the previous comment, in the table where you have the activation code and and activated flag, store the email address it was sent to as well. That way if need be, you can resend an activation code.
0
 

Author Comment

by:murbro
ID: 39792398
Hi Rajar

I don't quite understand how to to do Step 2.
How is "activation_code = asdfd123dfa" used
Is activation_code a session variable or something?
0
 
LVL 16

Assisted Solution

by:Kamal Khaleefa
Kamal Khaleefa earned 125 total points
ID: 39799069
once a user is sign up and you save his details in the database add another column to your data base table with name "activation_code" and randomly generate a string to be stored their


and then mail him a link like the one above in rajar post

then once a user click that url read the value of activation code and authenticate him
0
 

Author Closing Comment

by:murbro
ID: 39799334
Thank you all
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question