显示/隐藏Gmail电子邮件正文中的内容 [英] Show/Hide content in a Gmail email body

查看:615
本文介绍了显示/隐藏Gmail电子邮件正文中的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的组织完全使用Gmail(Google Apps),我们正在设法找到一种方法来显示/隐藏电子邮件正文中的内容,并让收件人决定是显示内容还是折叠内容以隐藏它

Our organization is completely on Gmail (Google Apps), and we are trying to figure out a way to show/hide content in the body of the email and have the recipient decide whether to show the content or collapse it to hide it.

我们之所以需要这样做,是因为我们以各种语言发送了通用电子邮件,因此我们希望收件人只需单击他们的语言并获得电子邮件

The reason why we need to do this is because we send out generic emails in various languages, so we want the recipient to simply click on their language and have the email show the text in that language.

我们要避免的事情:


  1. 以不同的语言发送多封电子邮件(并且必须管理电子邮件收件人的语言和多封电子邮件)。

  2. 在电子邮件正文中依次显示所有语言的内容,并在用户向下滚动到他们的语言。

我想到的一种方法是使用Javascript在电子邮件中显示/隐藏div可以容纳每种语言的内容。例如,我将有一个英语超链接,一个西班牙超链接,一个中文超链接,等等,并且在单击时,JS将显示与所单击语言关联的div。

One way I thought of doing this is by using Javascript to show/hide a div in the email that would hold the content for each language. For example, I would have an "English" hyperlink, a "Spanish" hyperlink, a "Chinese" hyperlink, etc and on click, the JS would show the div associated to the language that was clicked.

但是,当我从电子邮件客户端(雷鸟)发送HTML电子邮件时,我无法使Javascript在Gmail中运行。

However, I was not able to get Javascript to run in Gmail when I sent a HTML email from an email client (Thunderbird).

理想情况下,我正在寻找的解决方案应该只需要Gmail,因为某些用户无权从其Chrome浏览器浏览Gmail以外的任何其他网站。

The solution I'm looking for should ideally only require Gmail as some of the users do not have access to browse any other site outside of Gmail from their Chrome browser.

推荐答案

简单的解决方案是在顶部显示各种语言的HTML(没有javascript)电子邮件。单击目录中的一种语言将跳转到该语言在HTML中的锚点(因此,将是正确的语言消息正文)。

The simple solution would just be an HTML (no javascript) email with a "table of contents" at the top showing the various languages. Clicking a language in the table of contents would jump to that language's anchor in the HTML (and thus, the correct language message body).

很难做到这一点是要编写Gmail上下文小工具:

The hard way to do this would be to write a Gmail contextual gadget:

https://developers.google.com/google-apps/gmail/contextual_gadgets

这篇关于显示/隐藏Gmail电子邮件正文中的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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