ASP.NET C#中的MAPI故障 [英] MAPI failure in asp.net c#

查看:90
本文介绍了ASP.NET C#中的MAPI故障的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MAPI在C#Web应用程序中打开默认Web邮件客户端.现在,它首先作为对话框打开,然后作为Outlook窗口打开.我想使用MAPI打开直接默认邮件客户端窗口.

但是,当我在IIS上进行部署时,MAPI不会调用邮件对话框".

有没有简单的方法可以使用带有附件的MAPI来调用Web邮件客户端?

I am using MAPI for opening default web mail client in my C# web application. Now it is opening as dialog box first then outlook window. I want to open direct default mail client window using MAPI.

But when I am deploying on IIS then MAPI is not calling Mail Dialog box.

Is there simple way of calling web mail client using MAPI with attachment?

推荐答案

如果您要谈论的是在客户端计算机上显示默认的邮件客户端,而不是服务器(所有C#代码都在其中运行!),您要做的就是提供一个"mailto:"链接,客户端浏览器将处理其余的内容.

如果客户端未在本地安装默认邮件客户端,则无法确定用户使用的是哪种在线邮件客户端,因此答案是否定的.

哦,mailto不支持附件,因为这是安全问题.
If you''re talking about showing the default mail client on a client computer, not the server (which is where all of your C# code is running!), all you do is provide a "mailto:" link and the client browser will handle the rest.

If the client doesn''t have a default mail client installed locally, there is no way for you to determine what on-line mail client the user is using so the answer is no.

Oh, and mailto does not support attachments as this is a security concern.


您可能会在您的代码后面编写此MAPI代码,因此当然无法在客户端计算机部署在IIS中时.
MAPI代码正在尝试从服务器而不是客户端运行Outlook.
You''re likely writing this MAPI code in your code behind so of course it won''t work on a client machine when deployed in IIS.
The MAPI code is trying to run your outlook from the server, not the client.


这篇关于ASP.NET C#中的MAPI故障的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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