How to embed functionality into HTML email?

核能气质少年 提交于 2019-11-27 07:49:41

问题


We want to let users click a thumbs up or thumbs down button from an HTML email, without causing the clicking to open a browser window.

Is there a way to essentially embed limited web functionality (i.e., clicking an icon, showing confirmation) within HTML emails?

Thanks!


回答1:


I'm afraid such functionality, while theoretically possible, wouldn't be very practical given that most email clients strip out or disable JavaScript in order to prevent malicious code execution or other security issues. Your best bet is to use an image that looks like the thumbs up or thumbs down and then links directly back to your website. The browser window will still need to be opened, but you'll at least achieve the main part of your goal.




回答2:


The short answer is no, not reliably across email clients. Usually with something like this I'd embed an image that looked like your functional element and just have it link to a web page that has that functional element.



来源:https://stackoverflow.com/questions/2520300/how-to-embed-functionality-into-html-email

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!