how to put an image in an HTML signature for Thunderbird?

5,138

The url of the img is only valid to your computer and it is not valid at the receiver side. So you need to encode the image file using a base64 encoder like this one.

Upload the signature and convert it into base64.

Copy the code and replace the path in img tag with the code like this.

<br><img src="data:image/bmp;base64,Qk32BgAAAAAA...." alt="Signature">

Hope this helps.

Share:
5,138

Related videos on Youtube

Thufir
Author by

Thufir

Updated on September 18, 2022

Comments

  • Thufir
    Thufir over 1 year

    How do I get thunderbird to send HTML and an image in a signature?

    Just wanting to send a red dot in the signature file for as an example.

    see also:

    https://stackoverflow.com/q/44481019/262852

  • Thufir
    Thufir almost 7 years
    I updated the question a bit. Need to use src="data:...." ? Don't want to include the file itself directly.
  • CodeIt
    CodeIt almost 7 years
    @Thufir If your are not ready to include file itself directly then the image will only be visible to you. Others won't be able to see your image. For that you need to embed the image and send.
  • Thufir
    Thufir almost 7 years
    what I mean is I'd like to use file:///whatever instead of directly pasting the data. I wrote incorrectly about including the file directly. Of course I want to include the file, but would want to refer by file name and path. is that possible?
  • CodeIt
    CodeIt almost 7 years
    @Thufir Does your email recipient have access to this path? If not then they won't be able to see this file. For them you must embed the image and send or serve from your website or public server
  • Thufir
    Thufir almost 7 years
    ohhhhhh, that's weird, didn't think of that. thx.
  • CodeIt
    CodeIt almost 7 years
    @Thufir If this answers you question. Mark as answer.
  • Thufir
    Thufir almost 7 years
  • David162795
    David162795 over 5 years
    Images inserted like this are not visible in gmail for example. With how widespread gmail is this cannot be an acceptable answer.
  • David162795
    David162795 over 5 years
    Images inserted like this are not visible in gmail for example. With how widespread gmail is this cannot be an acceptable answer.
  • Thufir
    Thufir over 5 years
    how does gmail handle inserted images, then?
  • David162795
    David162795 over 5 years
    It basically removes src attribut out of html (if it contains such inline data instead of http*) before displaying message, and the <img> image without it is displayed as if it had broken url.