Office365电子邮件签名 - 如果标签包含一个值,则有条件地显示HTML

发布于 2025-01-28 14:35:24 字数 198 浏览 4 评论 0原文

我正在Office 365管理区域中添加公司广泛的电子邮件签名 - 邮件流>应用免责声明。然后,我使用他们的标签,例如%% firstName %%和%% lastName %%将用户详细信息插入签名中。

是否可以根据标签是否具有值有条件地显示HTML?例如,如果%% mobilenumber %%标签具有值,我想显示管道字符(|)。如何检查该标签是否具有值?

I'm adding a company wide email signature in the Office 365 Admin area under Rules - Mailflow > Apply Disclaimers. I am then using their tags such as %%FirstName%% and %%LastName%% to insert the users details into the signature.

Is it possible to conditionally show HTML depending on whether a tag has a value? E.g. I want to show a pipe character (|) if the %%MobileNumber%% tag has a value. How do I check if that tag has a value?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千寻… 2025-02-04 14:35:24

理想情况下,您可以使用JavaScript代码或CSS。例如,请参见检查是否可在屏幕上可见根据元素的存在在页面上有关更多信息。但是出于安全原因,Outlook在消息主体中没有运行任何JavaScript代码。此外,由于Word被用作电子邮件编辑器,并非所有CSS属性都在Outlook的桌面上支持。因此,没有办法。

Ideally, for that you could use a JavaScript code or CSS. For example, see Check if an element is visible on screen and Conditionally hide div based on if element is present on page for more information. But Outlook doesn't run any JavaScript code in the message body for security reasons. Moreover, not all CSS properties are supported in Outlook for desktop due to the fact that Word is used as an email editor. So, there is no way.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文