Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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