Could someone explain to me how to send a verification email, without using asp.net usercreation wizard, i want it so that when the email is sent, it will contain a url link to activate an account
Asked
Active
Viewed 2,534 times
1
-
1Are you using asp.net membership or your own? – Anri Feb 17 '14 at 12:15
2 Answers
2
First Add a field to Users
table called RegisterGuidId
with type uniqueidentifier
Second after registration send a normal email to user with link to your activation page with new generated RegisterGuidId
Third after user redirected to you activation page use the generated guid to get user data from database

Mohamed Salah
- 959
- 10
- 40
1
Basically what you need to do is, when the user registers generate a hash that is specific to the user (ideally something that can't be predicted by the bad guys) -> send this hash to the email that the user provided.
If you get a request with the url/hash that means he verified his account.
That's the basic idea anyway.

Dimitar Dimitrov
- 14,868
- 8
- 51
- 79
-
-
Also check this out http://stackoverflow.com/questions/3984138/hash-string-in-c-sharp – panky sharma Feb 17 '14 at 12:27