I have written a simple COM add-in for Outlook 2007 in Visual Basic 6 to handle the ItemSend event. The idea is that when a user tries to send an email to internal recipients with an attachment greater than a pre-defined size, they will be prevented from doing so (by cancelling the sending and displaying a message box explaining why).
Everything is working as expected. The ItemSend routine is defined in the COM add-in and the events are captured using:
Private WithEvents objOLApp As Outlook.Application
Private Sub objOLApp_ItemSend(ByVal Item As Object, Cancel As Boolean)
However, we are also running another custom add-in called "File Email to Job" in the office, written by a external company, which also seems to capture events from ItemSend. As a consequence, my add-in does not appear when an email is sent. The File to Job add-in appears instead.
My question is, is there a way for my add-in to gain priority when receiving ItemSend events or is it not possible to have these two add-ins running simultaneously?
Any help is very much appreciated.