Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a HTML Email Body which contains a Yes/No button.
So on hit of Yes or No button I have to store the response to my server Database.

So my query is how do I do that?
What technology can I use, I have good knowledge of ASP.Net.
Help me if I can write a WCF service which can listen to the responses.?
Or a ASP.Net Web API?

If I write any of the above How do I call them?
Posted

1 solution

As far as I know, you can't run code as a response to a button click in an email body: though it's easy to add a button.

What I would do is make the button link to a Url with a query string to provide the "yes" or "no" and some identification of who sent it. The site then returns a webpage which says something along the lines of "thank you for pressing yes" or "sorry you don't want this, if you change your mind..." which gives the function you want with some feedback to the user that the button press worked.
 
Share this answer
 

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