A
A
Alexey2016-10-29 11:47:09
C++ / C#
Alexey, 2016-10-29 11:47:09

How to track the sending of a message in ms outlook?

There is an application in which a letter is formed in MS Outlook
In the code I use the library using Outlook = Microsoft.Office.Interop.Outlook;
Letters are formed successfully, there are no problems with this.
But there was a need to track whether the generated letter was sent or not (in the case of sending, I need to write the data to the database). The problem is that letters may not be sent automatically and the decision to send is made by the user by clicking the "Send" button in Outlook.
The question is, is it possible to somehow catch the sending of a message or check a little later whether the generated letter was sent?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-10-29
@Rou1997

Somehow, absolutely everything can be tracked, either it must be a list of sent emails, or a special event (don't forget that in addition to creating a new instance of Outlook, you can also access the existing one if it is running), or "zen" like a sniffer or " patch" in EXE.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question