Some questions related to implementation of image inside email signature?

前端 未结 2 412
温柔的废话
温柔的废话 2021-01-03 17:25

i need to implement the email signature with image.As of now we only support the text in email signature which is already working.i need to provide the functionality where

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-03 17:56

    To include images in the email message, first you have to include the images as MIME attachments in the email. Each of these attachments must have a "Content-ID" header.

    --f46d0444ea0d6991ba04b91c92e6
    Content-Type: image/gif; name="theImage.gif"
    Content-Transfer-Encoding: base64
    Content-ID: 
    
    [base64 string]
    --f46d0444ea0d6991ba04b91c92e6--
    

    2) Then, in the email message, include the Content-ID in the src attribute of the tag.

    
    

提交回复
热议问题