Click here to Skip to main content
15,907,395 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Iam having registration form where I am sending activation link to gmail account but when I was registering I must be providing gmail password how should I do without sending password and user may login using any mail id
Posted
Comments
Nimit Joshi 3-Apr-14 1:29am    
I am not getting your question.

Steps to Do:

DataBase:

1.Add token column(any name),received column to your database table which has id,pwd,....

AspCode(In .Cs file)

1.Generate token by using "random" keyword and send token,id(which is already have) as a query string in url to mail account like

htttp://www.Testmail.com/home.aspx?token=1234&&id=123;

2.When user clicks on link(which is present in gmail or any other mail.).he is redirected to home page.

3.In home page you need to get the values from token and id and write the logic to update the column "received" to yes.(or you can use any logic).

NOTE:
1.If you want secure for token you can use encrypt and decrypt logic for token

2.The answer to this question is not a logic.its a task.So for time sake i just give the logic.For more you need to study various articles then you will get a clear idea.

refer below links .you will get an idea.

mail confirmation in asp.net[^]

http://forums.asp.net/t/1742559.aspx?Email+confirmation+link[^]

http://stackoverflow.com/questions/20738351/sending-email-confirmation-link-in-an-asp-net-application[^]

http://aspsnippets.com/Articles/Send-user-Confirmation-email-after-Registration-with-Activation-Link-in-ASPNet.aspx[^]
 
Share this answer
 
v2
Comments
Ajay_Babu 3-Apr-14 2:53am    
i dont know why it is down voted.its not an simple logic.its a Task(collection of so many logics).For this you need to study so many articles and get knowledge.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900