How to use NewMail or NewMailEx to monitor outlook inbox

studio

#1

I want to use outlook own event to monitor inbox, and trigger a message box to show new mail’s subject.

ApplicationEvents_11_Event.NewMail and ApplicationEvents_11_Event.NewMailEx are all can monitor it. But how to use them in invoke method?