Hi, I intend to trigger some code immediately upon receipt of a new email in Outlook.

I am following the code exactly word for word as written in this website:
https://www.tachytelic.net/2017/10/h...ed-in-outlook/

This should be the basis for me to edit and run more complex code segments

But even with this basic code demo, the new email event listener does not work.

I restarted Outlook a few times and sent the email to my Outlook inbox again and again

Any idea why this code isn't working? Thanks