為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Avoid Thunderbird to inline images referenced in html

  • 4 回覆
  • 2 有這個問題
  • 1 次檢視
  • 最近回覆由 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