admin管理员组文章数量:1344220
Is it possible to have a ajax button inside email? I want to add a button similar to the buttons inside a google calendar meeting invitation email.
Or is there any alternative option???
Is it possible to have a ajax button inside email? I want to add a button similar to the buttons inside a google calendar meeting invitation email.
Or is there any alternative option???
Share Improve this question edited Jun 21, 2019 at 9:56 Liam 29.8k28 gold badges139 silver badges203 bronze badges asked Mar 4, 2011 at 12:43 user279244user279244 9715 gold badges19 silver badges32 bronze badges 1- HTML is already horrible enough in emails... now JavaScript? Please no!! – Felix Kling Commented Mar 4, 2011 at 13:21
2 Answers
Reset to default 5Don’t count on it. Most if not all mail clients will refuse to run Javascript within an e-mail.
If you want to include buttons, insert images with different links to a public web page of yours. Also, do include the button images within the mail message itself (and reference them by Content-ID), since many mail clients nowadays even refuse to load remote images.
This is exactly what Google Calendar does. Of course, Gmail recognizes invitation attachments (text/calendar), and so provides its own interface for the yes/no/maybe buttons.
Probably not, it depends on mail client but I would be incredibly suprised if I saw any that allowed scripts as this opens the floodgates for huge security promise risks.
Edit
Your best option would probably be to look at support for iframes, again though, I would be suprised if many mail clients allowed use of this element.
本文标签: How can I add javascript to an the emailStack Overflow
版权声明:本文标题:How can I add javascript to an the email? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743739274a2530591.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论