Click here to Skip to main content
15,887,965 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI Experts

I had one task. I am sending one email to my friend through asp.net. That email contains link. If he clicks on the link it will redirect into my aspx page. Now what i want to do is while at the time of clicking the link i want to capture his email id. How can i achieve this.

Kindly provide your suggestions.

Rgds
Jagadesh
Posted
Comments
Thanks7872 23-Oct-13 5:09am    
If you don't have it,how you sent that email? This question won't make sense at all.
Kumar from madras 23-Oct-13 8:06am    
HI ROHAN
I think you did'n understood the question properly. Pls find the suggestion given by Ajay. Thats helps me very well.

Rgds
Jagadesh
Thanks7872 23-Oct-13 8:15am    
That is what i was saying. You have sent email to abc@xyz.com and then you are trying to get abc@xyz.com which makes no sense at all.

1 solution

Hi Kumar,

I guess,your task is to track the emails ids in the which the link is clicked.
If this is your requirement the following solution may help you.

Consider that link in email redirects to your page Mypage.aspx.
What we can do here is , append one query string parameter to the page link with the EmailId to which email is sent i.e mypage.aspx?ref=[EmailId]
In the page load of Mypage.aspx,you can look for the query string ref value and insert the Email id into the data base.
Also you may need to encode the Email to keep it secure.
This is a simple approach to start,I hope this will help you..
 
Share this answer
 
Comments
Kumar from madras 23-Oct-13 6:40am    
HI Ajay

Thanks for your suggestion. I Hope this will me. Once it is Completed. will revert you

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