搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Avoid Thunderbird to inline images referenced in html

  • 4 个回答
  • 2 人有此问题
  • 70 次查看
  • 最后回复者为 paol0

more options

I've prepared an email html signature that contains an image referenced via its url (it's just the company logo).

Basically in the html code of the signature at some point I have

Thunderbird downloads the image and inlines it as a CID Embedded Image, then change the image src attribute to point to the embedded image.

Is there a way to avoid this?

I'm asking because several email/web mail clients do not deal well with inlined images.

Thank you, Paolo

I've prepared an email html signature that contains an image referenced via its url (it's just the company logo). Basically in the html code of the signature at some point I have <img src="http://www.example.com/logo.gif"> Thunderbird downloads the image and inlines it as a CID Embedded Image, then change the image src attribute to point to the embedded image. Is there a way to avoid this? I'm asking because several email/web mail clients do not deal well with inlined images. Thank you, Paolo

被采纳的解决方案

Try doing it my way; I think you'll see a tag modifier that supresses the inlining, but I don't have a reference to this right now. Then you can copy that modifier into your handcrafted signature code.

定位到答案原位置 👍 0

所有回复 (4)

more options

You have saved your signature as an html file?

I'd use Thunderbird to create the signature by creating it as if it was an email message, but use File|Save As to save it as an html file, then set that file to be used as the signature in the account settings.

When inserting the image into the signature, visit its Properties and untick "Attach this image to the message". That should leave you with a bare URL.

You are sure your image is hosted somewhere that correspondents can download it from?

more options

No, I copy-paste the code in the signature field.

I've set up a page on our website where every employee insert its personal info and gets an html code snippet to copy into thunderbird signature field.

I'm sure the html code is good and the image promptly available from the server.

I tried the same html signature with Apple Mail, the image is preserved as link and the message displays correctly (with the image) on almost every client (both mobile, web and desktop).

I'm testing the message on 20+ clients with litmus.com service

more options

选择的解决方案

Try doing it my way; I think you'll see a tag modifier that supresses the inlining, but I don't have a reference to this right now. Then you can copy that modifier into your handcrafted signature code.

more options

Awesome.

I tried what you suggested: composed a mail with a linked image and saved as html.

It turns out that if "Attach this image to the message" is unchecked then in the resulting html code a tag is added into the img element:

moz-do-not-send="true"

is inserted after the src attribute of the image.

--

I then updated my signature html code adding the tag to the linked image and now the email is composed properly (without the image embedded) and displays fine on every device I tested.

The signature code can be copy-pasted into the preferences field or loaded from a file. What matters is that moz-do-not-send attribute is set true in linked images.

Thank you very much Zenos