如何将javascript添加到电子邮件中? [英] How can I add javascript to an the email?

查看:138
本文介绍了如何将javascript添加到电子邮件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

电子邮件中是否可以有一个Ajax按钮? 我想添加一个与Google日历会议邀请电子邮件中的按钮相似的按钮.

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.

还是有其他选择?

推荐答案

不要指望它.大多数(如果不是全部)邮件客户端将拒绝在电子邮件中运行Javascript.

Don’t count on it. Most if not all mail clients will refuse to run Javascript within an e-mail.

如果要包括按钮,请在您的公共网页上插入带有不同链接的图像.另外,请在邮件消息本身中包含按钮图像(并通过 Content-ID ),因为如今许多邮件客户端甚至拒绝加载远程图像.

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.

这正是Google日历所做的.当然,Gmail可以识别邀请附件(文本/日历),因此提供了自己的界面是/否/也许按钮.

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.

这篇关于如何将javascript添加到电子邮件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆