简体   繁体   English

是否有适用于.NET应用程序的MAPI API?

[英]Is there a MAPI API for .NET Applications?

Data comes in by email as a zipped file. 数据通过电子邮件作为压缩文件传入。 The Java solution we wrote tried to parse and download the email automatically and load the data. 我们编写的Java解决方案试图自动解析和下载电子邮件并加载数据。 We ran into all kinds of problems getting through the firewall, and eventually the solution just got put on hold. 我们遇到了通过防火墙的各种问题,最终解决方案被搁置了。 Because the administrators wouldn't allow access to an anonymous type of email box. 因为管理员不允许访问匿名类型的电子邮箱。

The account is currently pop3 – they want to move the email server and change the account type to native MAPI. 该帐户目前是pop3 - 他们想要移动电子邮件服务器并将帐户类型更改为本机MAPI。 This would not work with a java solution as no java -> MAPI API exists. 这不适用于java解决方案,因为不存在java - > MAPI API。

Would a .net solution would work? .net解决方案会起作用吗? Is there a MAPA API for .NET applications? 是否有适用于.NET应用程序的MAPA API?

Sadly you cannot use MAPI directly from .NET (well you can but MS don't support it). 遗憾的是,您无法直接从.NET使用MAPI(您可以,但MS不支持它)。 See http://blogs.msdn.com/stephen_griffin/archive/2009/04/03/mapi-and-net.aspx http://blogs.msdn.com/stephen_griffin/archive/2009/04/03/mapi-and-net.aspx

However there is a COM component called Redemption (google for Outlook Remption - can't post more than hyperlink yet! ) available which you can use .NET interop with as an out-of-process COM server. 但是有一个名为Redemption的COM组件(google for Outlook Remption - 不能发布超过超链接!),你可以使用.NET interop作为进程外COM服务器。

I guess you can access mapi through COM InterOP. 我想你可以通过COM InterOP访问mapi。 It is considered to be slow and less effectice. 它被认为是缓慢且效果较差。 check Visual studio tools for office for a better approach. 检查用于办公室的Visual Studio工具以获得更好的方法。

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

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