C# MAPI to read exchange server inbox

后端 未结 3 1166
别跟我提以往
别跟我提以往 2020-12-22 02:25

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:

3条回答
  •  独厮守ぢ
    2020-12-22 03:04

    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.

提交回复
热议问题