How to track Outlook mail received from .NET.

I have a requirement to write an application that will allow users to run selected scripts when mail with a specific subject will be received from a specific address. Basically, the application should track mail arriving in Outlook (Exchange Server 2007). How can I do that? Any idea would be helpful.

Basically, I need to track the New Mail event and retrieve the sender and mail data for my .NET application.

[Will be implemented in .NET]

+3
source share
4 answers

You can do this by using the Outlook ObjectModel and the MailItem / Item and events, or by simply checking the MailItems for Unread emails using a timer. check MSDN for details on Object (MailItem)

+2
source

I have never done this before, but as far as I know, this can be done by writing your own add-in add-in.

Some sources that may be helpful:

+1
source

, outlook i.e , EWS WebDav Exchange Server. .

0

I have done this before, and I can say that Olivier is pointing you in the right direction. In addition, if you use Outlook 2003 as your client, you might want to take a look at the Redemption library, as this will save you all annoying security requests that require user intervention.

0
source

Source: https://habr.com/ru/post/1714286/


All Articles