问题描述
在我的应用程序中,我具有指向.eml文件的超链接.当我单击.eml文件链接时,该eml在浏览器(IE)中打开.
In my application, i have hyperlinks to .eml files. when i click on an .eml file link, the eml opens in the browser (IE).
我想要的是直接在Outlook 2010(或相关程序)中打开.eml,而不是在浏览器中打开.
What i want instead, is to open the .eml in Outlook 2010 directly (or the associated program) and not the browser.
请注意,如果双击我文件系统中的.eml文件,该.eml将在Outlook 2010中打开.
Note that if double-click on an .eml file from my filesystem, the .eml opens in Outlook 2010.
推荐答案
这是您的浏览器设置有关如何处理不同文件/MIME类型的问题.在那里查看一下,并将.eml文件链接到您的Outlook 2010安装.如果您需要更多有关在用户计算机上打开程序的控制,则需要使用Flash或可能的Silverlight.仅使用HTML和Javascript并不能使您控制要链接到的文件的软件,这是出于自身安全的考虑.而且即使使用Flash,您也无法完全控制使用哪种软件来处理链接的文件-据我所知,您只能设置mime类型,这样才能将用户的计算机引导到正确的方向.
This is a question of your browser settings on how to handle the different file/mime types. Have a look there and link the .eml file ending to your Outlook 2010 installation. If you need more control about opening programs on the user's computer you'll need to use Flash or probably Silverlight. Just using HTML and Javascript does not let you control what software is handling the files you are linking to - this is for your own security. And still even with Flash you can't totally control on what software will handle your linked files - as far as I remember you can only set the mime type and that way steer the user's computer into the right direction.
这篇关于在Outlook 2010(而不是浏览器)中打开eml文件链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!