简体   繁体   中英

HyperLinking PNG images to open/download into an Outlook e-mail body

I have some customized PNG images in HTML pages. I want to Hyperlink these images in a way that when clicked they should download as a .MSG file. That is, it should give the option of opening in an Outlook email body straight away. I'm not sure how to go about this. Whether I need to convert the PNG images to MSG files somehow. Any advice would be appreciated.

As a background, the HTML files are currently heavy on JavaScript that is used to customize the images by the user. The customized images can be saved as a PNG image by the user by right clicking the image and saving. I have avoided 'download' attribute because of its inconsistent support across browsers.

What I want is for the user to be able to load the final customized image to his/her email straight away.

Outlook will not let you run any scripts of navigate in the HTML body of an email. All navigation will be redirected to an external browser.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM