I am working on a website with Asp.Net (C#) and I have a problem like this:
I will sent an email for 20 person and there is a link in mail. If user click the link I want to save somewhere (database, text file etc.) this user mail address.
How can I do?
Thanks,
John
Since you already know the email address of the person (because you sent an email to him), you could include a query string parameter to the anchor that is part of the mail message:
When the person viewing this mail clicks on the link the
foo.aspxpage on your site will be called and passed the email. From there on you could do whatever you want with this email (save it in a database, text file, whatever you want).For obvious reasons you might want to encrypt this email address to avoid him changing it and passing some other address. Depending on the level of security you require and the sensibility of changing this email there are different encryption algorithms you could use.