使用Chrome打开HTML正文中的Outlook [英] Open Outlook with HTML in body using Chrome

查看:592
本文介绍了使用Chrome打开HTML正文中的Outlook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管我已经从Stack中找到了很多有关此方面的信息,特别是在此处 ,我只想绝对确定在Chrome中无法做到这一点,而且只能在Internet Explorer中完成.

Although I've found a lot of information on this already from Stack, specifically here, I just want to be absolutely sure that there's no way to do this in Chrome and it can only be done in Internet Explorer.

从Stack答案和我自己的测试中,我知道没有希望将mailto与HTML一起使用在体内,因此,我尝试使用JavaScript,以便在用户执行某些操作时使用Outlook(或其他默认设置)电子邮件客户端)将打开,其正文已填充HTML.问题是我们的用户使用的是Chrome,而不是IE.我在IE中测试了此代码,它实际上可以工作,但是毫不奇怪,由于ActiveXObject是不支持.

From Stack answers and my own testing I know there is no hope of using mailto with HTML in the body, so I'm attempting to use JavaScript so that upon the user performing some action, Outlook (or whatever their default email client is) will open with the body already populated with HTML. The catch is that our users use Chrome, not IE. I tested this code in IE and it actually worked, but unsurprisingly does not work in any other browser because the ActiveXObject is not supported.

我想我已经知道答案是完全没有,但是令我惊讶的是,Chrome或其他浏览器中没有与此等效的JavaScript.

I think I already know the answer is a flat-out no, but it surprises me that there is no equivalent JavaScript for this in Chrome or other browsers.

推荐答案

假定已安装Outlook,也许更好的方法是将.msg文件用作服务器上的模板".单击链接后,如果Outlook是默认的邮件客户端,则用户本机系统应将其作为新邮件打开.我想这取决于电子邮件实际上需要多动态.

Assuming outlook is installed, perhaps the better way is to serve a .msg file as a 'template' on the server. Upon clicking the link, the users native system SHOULD, if outlook is the default mail client, open it as a new message. I guess that depends on how dynamic the email actually needs to be though.

否则,是的,activeX仅是MS构造.基本上就是ie如此不安全的原因,因为您可以做这样的事情.

Otherwise, yes, activeX is a MS construct only. It's basically the reason why ie is so insecure, because you can do things like this.

有一个可用的插件,但是要求您的用户安装一些东西来发送电子邮件可能会有点麻烦 https://chrome.google.com/webstore/detail/activex-for -chrome/lgllffgicojgllpmdbemgglaponefajn

There is a plugin available, but that might be a bit much to ask your users to install something to send an email https://chrome.google.com/webstore/detail/activex-for-chrome/lgllffgicojgllpmdbemgglaponefajn

这篇关于使用Chrome打开HTML正文中的Outlook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆