You did not specify a language, so I assume that you are flexible.
Just extract the HTML using the corresponding function in any library you work with, either draw it directly in the browser, or save it to the file system and return the link. You cannot βattachβ to attachments from the email body, but you can get attachments from the parser library, save them, and create file links.
source share