Application.ItemSend event fires before the mesasge is first moved to the Outbox and then to the Sent Items folder, so you you can safely add your custom prop in that event handler.
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool
"donald" <jonathan[ at ]dorling.biz> wrote in message news:1138808853.762528.129670[ at ]g43g2000cwa.googlegroups.com...
[Quoted Text] > If you access Outlook through COM-automation and create a new MailItem, > you lose access to it when it is send. > > "The subject has been moved or deleted" or some such error message you > get, if you try to access any of the mails properties after it has been > send. > > I know i need to keep track of the MailItem where it is using > MAPIFolder.Items.ItemAdd event on the "Sent Items" folder and add a > unique custom property to the message and then search for that message > in the "Sent Items" folder. > > I got the ItemAdd and it find it but i need to check it is the right > message so how can i add a custom property to all the MailItem in > outlook? > > Thanks > > Donald >
|