renuel avila renuel avila -4 years ago 104
C# Question

How to use buttons in email and receive click response using C#?

This picture is and email with html. I used C# to make emails to be sent on gmail. My deepest question is, how to put action here in buttons? Like if I click the Threat button, it will signify to my C# that the picture is a threat. I know it's about json stuffs, but I don't know how to implement it. Thanks guys

picture

Answer Source

One easy method is to use html link <a href="{your custom link with encoded parameters}"><Button here/></a>

around the button, the links must be encoded and carry custom parameters as query string or url/path. Similar technique is used in "verify email id" mails.

And at the backed the received parameters are decoded and analysed to take necessary action.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download