This code shows a couple of triggers in Outlook that invokes when email is received. There are two email folders being monitored and custom triggers can be created based on which folder receives the new email. In this example, both custom triggers just triggers a MessageBox containing certain information from the email that arrived. That can however be replaced with any event one wants to add.