如何设置 Thunderbird 签名以使用动态 url 的 html?

发布于 2024-09-13 21:49:29 字数 290 浏览 1 评论 0 原文

我想在 Thunderbird 中使用动态电子邮件签名,这是上下文感知的(取决于日期、数据库中的事件等)

如果我有一个可以生成签名 html 的 PHP(即 http://www.site.com/email_sign.php) 如何强制 Thunderbird 使用它?

(我看到的唯一选项是使用静态 html(无论是内联还是来自本地系统文件)。

有什么想法吗?

I want to use a dynamic email signature in Thunderbird, that is context aware (depends on date, events in db, etc.)

If I have a PHP that can generate the signature html (i.e. http://www.site.com/email_sign.php)
how do I force Thunderbird to use it?

(the only options I see are using static html (whether inline, of from a local system file).

any ideas?

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

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

发布评论

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

评论(3

独闯女儿国 2024-09-20 21:49:29

您可以使用 Signature Switch 附加组件和调用 wget 的批处理文件来实现您想要的目的。我写了一个简单的可执行文件来替换bat文件;您可以从 阅读相关内容(如果需要,也可以下载) http://www.else.co.nz/portfolio/020-code/dynamic-email-signatures

You can use the Signature Switch add-on and a batch file calling wget to achieve what you want. I wrote a simple executable to replace the bat file; you can read about it (and download it if you want to) from http://www.else.co.nz/portfolio/020-code/dynamic-email-signatures

王权女流氓 2024-09-20 21:49:29

我怀疑你能简单地做到这一点。 Thunderbird 确​​实允许通过创建插件来编写脚本,但我个人不知道如何做到这一点或它有多容易。

我能想到的最佳答案是设置计划任务/cron作业将php下载到本地文件,然后按照知识库,即:

您可以使用 Thunderbird 创建签名文件,也可以使用操作系统工具来创建它们,例如纯文本编辑器。

Thunderbird 不提供任何
存储签名的特殊位置
文件。您可以创建一个签名
您的个人资料中要存储的目录
使它们易于备份
以及您的个人资料的其余部分。
或者你可以将它们存储在某个地方
否则。

要使用签名文件,请在
帐户设置作为签名
一个身份。选中“附加
相反,来自文件的签名”和
指定签名文件。

除非 Thunderbird 在内部缓存 HTML,否则这将起作用,但是我在常见问题解答中没有看到这种情况的迹象。

I doubt you can do this simply. Thunderbird does allow scripting via the creation of plugins but I wouldn't personally know how do do it or how easy it might be.

Best answer I can think of would be to set a scheduled task / cron job to download the php to a local file then follow the instructions in the knowledge base, namely:

You can use Thunderbird to create signature files, or you can use your operating system tools to create them—for example, a plain text editor.

Thunderbird does not provide any
special place to store signature
files. You could create a Signatures
directory in your profile to store
them, making them easy to back up
along with the rest of your profile.
Or you could store them somewhere
else.

To use a signature file, specify it in
Account Settings as the signature for
an identity. Check the box "Attach the
signature from a file instead" and
specify the signature file.

This will work unless Thunderbird caches the HTML internally, however I see no indication in the FAQ that this is the case.

无尽的现实 2024-09-20 21:49:29

多年来,我手动更新电子邮件客户端的签名 - 直到我厌倦了......这就是为什么我编写了一个 PHP 脚本来从 RSS 提要自动创建随机签名块!看看:https://github.com/birdy1976/signature :-D

For years I updated the signature for my email client manually – until I got fed up… That’s why I wrote a PHP script to create a randomized signature block automatically from an RSS feed! Check it out: https://github.com/birdy1976/signature :-D

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