PDA

View Full Version : Trigger Application_ItemSend when sending from other applications



johncassell
03-28-2012, 01:28 AM
Hi, really hope someone can help with this please..

I am using Application_ItemSend to check some things before user sends an e-mail. To keep things simple lets say my code simply shows the user a msgbox with the subject of the email



Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As Boolean)
msgbox(item.subject)


This works fine normally but when an email is created from another application such as Word (with the File>Send To>Mail Recipient feature), my code is completely ignored. I've been searching for days for a solution to this so really hope someone can help with this!

Thanks
John

JP2112
05-07-2012, 12:23 PM
I'm afraid File >> Send from other MS Office applications uses simple MAPI which bypasses Outlook completely.