BeforeItemMoved won't fire when message sent

Joined
Apr 24, 2009
Messages
4
Reaction score
0
Hi,
I'm writing an addIn for office and I need to log the information when the message is sent. The problem is when user is not using "Save to sent items" option. I have tried to force the save by setting MailItem.DeleteAfterSubmit to false in ItemSend. This works fine on 2003 but on 2007 the message is sent but stays in outbox.
I have also tried to add BeforeItemMoved event for outbox, but this doesn't fire when message is sent, only when you actually delete the message.
Also, ItemRemoved is not fired every time(I did set the folder as object on the class level) and I don't have the reference to the message when it is fired.
Is there any event that I can safely catch when the message is sent?

TIA

Vladimir
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top