PC Review


Reply
Thread Tools Rate Thread

BeforeItemMoved won't fire when message sent

 
 
New Member
Join Date: Apr 2009
Posts: 4
 
      24th Apr 2009
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message: interface has too many methods to fire events from David H Windows XP MovieMaker 1 22nd Dec 2007 11:51 PM
Paint message fire galore =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= Microsoft C# .NET 5 26th Oct 2007 05:47 PM
Ship's Tour Of My Universe To Begin - Call To Arms! Duty Stations! Fire When Ready! Cease Fire Procola! Pt. I/III john_francis_ayres@hotmail.com DIY PC 0 23rd Mar 2007 03:18 AM
how do i fire events on read page of message form? =?Utf-8?B?YmJ5YmVl?= Microsoft Outlook Form Programming 2 10th Jan 2005 02:47 PM
fire a macro when a message is moved to a specific subfolder Barney Mowder Microsoft Outlook VBA Programming 1 21st Jul 2004 05:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 AM.