Gor*_*oro 15 html css email html-email
HTML电子邮件可以使用图像附件作为标记的来源吗?
假设我发送的电子邮件中包含每封电子邮件的特定图像 - 并且它们是作为电子邮件的附件发送的 - 电子邮件中的HTML正文可以使用这些图像吗?我的猜测是否定的,但有没有任何黑客或变通方法可以使它工作?
谢谢,
Que*_*tin 18
不需要黑客.使用cid:URI方案
--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*foo1@bar.net" ALT="IETF logo">
--boundary-example-1
Content-ID: <foo4*foo1@bar.net>
Content-Type: IMAGE/GIF
Content-Transfer-Encoding: BASE64
R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5
NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A
etc...
--boundary-example-1--
Run Code Online (Sandbox Code Playgroud)