简体   繁体   English

超链接PNG图像以打开/下载到Outlook电子邮件正文中

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

I have some customized PNG images in HTML pages. 我在HTML页面中有一些自定义的PNG图像。 I want to Hyperlink these images in a way that when clicked they should download as a .MSG file. 我想以某种方式超链接这些图像,当单击它们时应将其下载为.MSG文件。 That is, it should give the option of opening in an Outlook email body straight away. 也就是说,它应该提供立即在Outlook电子邮件正文中打开的选项。 I'm not sure how to go about this. 我不确定该怎么做。 Whether I need to convert the PNG images to MSG files somehow. 是否需要以某种方式将PNG图像转换为MSG文件。 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. 作为背景,HTML文件当前大量使用JavaScript,该JavaScript用于用户自定义图像。 The customized images can be saved as a PNG image by the user by right clicking the image and saving. 用户可以通过右键单击自定义图像并将其保存为PNG图像。 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. Outlook不允许您在电子邮件的HTML正文中运行任何导航脚本。 All navigation will be redirected to an external browser. 所有导航都将重定向到外部浏览器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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