HTML Code Link within an Email to an Email Attachment

别说谁变了你拦得住时间么 提交于 2021-02-07 11:36:46

问题


Wondering if this is possible. Suppose an email is written in HTML for email clients to render. And an anchor tag exists in the HTML code that is going to be parsed by the email client.

One can reference resources (images, files, etc..) externally from servers. For instance, I can do Download PDF

Is it possible to reference an attachment that was sent along with the email? So attach a PDF and have some tag in the email reference the attachment that's a part of the HTML code.

I don't really want to hear "alternative" solutions. I pretty much want to hear yes/no.


回答1:


Nope. Each mail client takes care of attachments individually, in their own way. If you could make it work in some clients, rest would fail.

If think that there would be more problems than use.




回答2:


Answered in https://stackoverflow.com/a/9983277/38841

No hacks needed. Use the cid: URI scheme



来源:https://stackoverflow.com/questions/6146171/html-code-link-within-an-email-to-an-email-attachment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!