base64 encoded images in email signatures

后端 未结 3 1556
野的像风
野的像风 2020-11-22 16:28

I have to include some images (company logo\'s etc) in email signatures. I\'ve had all sorts of issues using the embedded images produced by the email system in question (th

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 16:49

    Important

    My answer below shows how to embed images using data URIs. This is useful for the web, but will not work reliably for most email clients. For email purposes be sure to read Shadow2531's answer.


    Base-64 data is legal in an img tag and I believe your question is how to properly insert such an image tag.

    You can use an online tool or a few lines of code to generate the base 64 string.

    The syntax to source the image from inline data is:

    Red dot
    

    http://en.wikipedia.org/wiki/Data_URI_scheme

提交回复
热议问题