Catch Event write new mail, reply, reply all

Add-in Express™ Support Service
That's what is more important than anything else

Catch Event write new mail, reply, reply all
 
franck DAMMANN




Posts: 41
Joined: 2021-01-26
Dear all,

I'm looking for a way to catch Events on my Addin when user writes new email, reply or reply all to add a new email in CC automatically.

I followed Pieter's Blog (https://www.add-in-express.com/creating-addins-blog/2011/09/06/outlook-item-events/) but my OUtlookItemEventsClass1.cs is never called.
I successfully retrieve new mailItem event (through adxOutlookAppEvents1_InspectorActivate) but from here I'm not able to know if this is a new mail written, a reply, reply all...

As Pieter's Blog is quite old (2011) may be there is a new way to catch events ?

Thanks for your help !
Franck.

PS: I'm using Visual Studio 2019 and C#
Posted 26 Jan, 2021 03:47:54 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Franck,

There's the ItemSend event; in Add-in Express it is mapped to the ADXOutlookAppEvents.ItemSend event. You use that event to modify an outgoing email or cancel the send. Is this what you are looking for?

Pieter described connecting to the events of a selected item. Is this the case? Also, I suggest that you check a sample project we describe at https://www.add-in-express.com/creating-addins-blog/2020/07/01/sample-com-addin-projects-outlook-excel-powerpoint-word/.


Andrei Smolin
Add-in Express Team Leader
Posted 27 Jan, 2021 04:15:53 Top
franck DAMMANN




Posts: 41
Joined: 2021-01-26
Hi Andrei,

Thanks for your reply, yes this is what I was looking for. Thanks for the link, it helped me to solve my problem. Have a nice day !

Franck.
Posted 28 Jan, 2021 02:12:58 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
You are welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 28 Jan, 2021 02:36:27 Top