How can I add javascript to an the email? - Stack Overflow

Is it possible to have a ajax button inside email?I want to add a button similar to the buttons inside

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
Add a ment  | 

2 Answers 2

Reset to default 5

Don’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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743739275a4498841.html

相关推荐

  • How can I add javascript to an the email? - Stack Overflow

    Is it possible to have a ajax button inside email?I want to add a button similar to the buttons inside

    6天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信