问题描述
我想编写C#应用程序,它会远程连接到Exchange Server和阅读我的收件箱!我想使用MAPI了点。
所以,我有两个问题:
- 是否可以远程完成,有什么要求(如安装Outlook客户端,等等?)
- 我是不是能够找到在C#中的任何代码示例,它使用MAPI连接到收件箱?
1)如果我没有记错,必须安装Outlook和一个配置文件必须设置。 (总之,你正在阅读的展望数据,而不是交换)
2)有样本的:
- 的(参见4.7)
注意的
其他选项是使用直接沟通的WebDAV,IMAP,POP3或 。所有将努力获取电子邮件。我建议你尝试的Web服务。
I want to write C# application which will remotely connect to exchange server and read my inbox! I want to use MAPI for that.
So I got two questions:
- Can it be done remotely, and is there any requirements(e.g. install outlook client,etc? )
- I was not able to find any code example in C# which uses MAPI to connect to inbox?
1) If I remember correctly Outlook must be installed and a profile must be set up. (In short; you are reading Outlooks data, not Exchange).
2) There are samples for this:
- http://bytes.com/topic/net/insights/795371-accessing-inbox-through-mapi-using-c-net
- http://g8.cx/mapi/ (See 4.7)
Note that MAPI/CDO is not supported in .Net.
Other options is to communicate directly using WebDAV, IMAP, POP3 or WebServices. All will work to retrieve emails. I recommend you try the webservice.
这篇关于C#MAPI读取交换服务器收件箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!