Can an HTML email body reference a file sent as an attachment (in the same email)?

后端 未结 1 1410
不知归路
不知归路 2020-12-05 15:17

Can an HTML email use an image attachment as the source for tag?

Let\'s say I am sending an email with per-email specific images - and they are sent as an attachme

1条回答
  •  攒了一身酷
    2020-12-05 15:52

    No hacks needed. Use the cid: URI scheme

     --boundary-example 1
     Content-Type: Text/HTML; charset=US-ASCII
    
     to the other body part, for example through a statement such as:
     IETF logo
    
     --boundary-example-1
    
     Content-ID: 
     Content-Type: IMAGE/GIF
     Content-Transfer-Encoding: BASE64
    
     R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5
     NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A
     etc...
    
     --boundary-example-1--
    

    0 讨论(0)
提交回复
热议问题