如何设置 Thunderbird 签名以使用动态 url 的 html?
我想在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 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
我怀疑你能简单地做到这一点。 Thunderbird 确实允许通过创建插件来编写脚本,但我个人不知道如何做到这一点或它有多容易。
我能想到的最佳答案是设置计划任务/cron作业将php下载到本地文件,然后按照知识库,即:
除非 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:
This will work unless Thunderbird caches the HTML internally, however I see no indication in the FAQ that this is the case.
多年来,我手动更新电子邮件客户端的签名 - 直到我厌倦了......这就是为什么我编写了一个 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