Embedding attached images in HTML emails

后端 未结 7 1627
既然无缘
既然无缘 2020-12-05 08:15

If I attach an image to an email, how can I place it in the HTML content? I tried just using the filename as the image source but that doesn\'t seem to work.

7条回答
  •  再見小時候
    2020-12-05 08:26

    Be more specific on how you build the HTML mail message.

    The result will be a multipart-MIME message with a text/html part (if you really do it right with an alternate part of type text/plain) and several images, which are then referenced from within the HTML.

    See RFC 1813 and RFC 2378 for more information about content-id in mixed MIME and related data (referred by CID in the HTML source).

提交回复
热议问题