2012-04-02 8 views

回答

17

沒有hacks需要。使用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: 
<IMG SRC="cid:foo4*[email protected]" ALT="IETF logo"> 

--boundary-example-1 

Content-ID: <foo4*[email protected]> 
Content-Type: IMAGE/GIF 
Content-Transfer-Encoding: BASE64 

R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5 
NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A 
etc... 

--boundary-example-1-- 
+0

我認爲它是必要的嗎? Content-ID:** <** name **> ** – 2015-06-03 04:52:34

+1

來自鏈接到答案中的文檔:「注意:在Internet郵件中,內容ID爲 [MIME]或Message-ID [822]標頭中的addr-spec封裝在內在尖括號內 (<>)。「 – Quentin 2015-06-03 08:55:41

相關問題