Thunderbird:嵌入式图像未内联渲染

发布于 2024-11-02 05:46:03 字数 828 浏览 1 评论 0原文

这可能不是最合适的地方,我已经发布到 Mozilla 板上,但我猜这样会吸引更多眼球……无论如何:

我们正在生成一封包含内嵌图像的 HTML 电子邮件。它们在 Outlook 2007 中显示良好,但不会与 Thunderbird 2.0.0.23 内联呈现,它们显示为附件。我在我的 Thunderbird 客户端中进行了以下设置:

Display attachments inline: tick 
Message Body As: Original HTML 

据我所知,各种标头都是正确的(来自 Thunderbird 查看源代码):

------=_Part_1_9884354.1303120232543 
Content-Type: image/gif; name=classpath_466bd94ae6b_before.gif 
Content-Transfer-Encoding: base64 
Content-Disposition: inline; filename=classpath_466bd94ae6b_before.gif 
Content-ID: <classpath_466bd94ae6b_before.gif>

和 HTML(Thunderbird 源代码):

<img title=3D"Before" alt=3D"Before" height=3D"13" width=3D"52" src=3D"cid:classpath_466bd94ae6b_before.gif"/>

根据文档,一切看起来都很好,任何建议都表示赞赏。

谢谢

This may not be the most appropriate place for this, I have posted to the Mozilla boards but I'm guessing SO gets a few more eyeballs... Anyway:

We're generating an HTML email with inline images. They display fine in Outlook 2007, but do not render inline with Thunderbird 2.0.0.23, they show up as attachments. I have the following set in my thunderbird client:

Display attachments inline: tick 
Message Body As: Original HTML 

As far as I can tell the various headers are correct (from Thunderbird view source):

------=_Part_1_9884354.1303120232543 
Content-Type: image/gif; name=classpath_466bd94ae6b_before.gif 
Content-Transfer-Encoding: base64 
Content-Disposition: inline; filename=classpath_466bd94ae6b_before.gif 
Content-ID: <classpath_466bd94ae6b_before.gif>

and the HTML (Thunderbird source):

<img title=3D"Before" alt=3D"Before" height=3D"13" width=3D"52" src=3D"cid:classpath_466bd94ae6b_before.gif"/>

Everything looks good per the docs, any suggestions appreciated.

Thanks

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

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

发布评论

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

评论(1

我一向站在原地 2024-11-09 05:46:03

我遇到了同样的问题,并通过更改 Content-Type: multipart/mixed; 解决了它内容类型:多部分/相关; (在构建的电子邮件的 MIME 中)

I had the same problem and solved it by changing Content-Type: multipart/mixed; to Content-Type: multipart/related; (in the MIME of the constructed email)

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