问题
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