That's correct. You most likely will be best off in setting a timer to go
off maybe 1/2 second or so after you exit the item.Send event and then in
the timer event call item.Close. So the sequence would be:
In Item.Send:
Save item
Get item EntryID
Cancel Save event
Set timer
In timer event:
Close the item
Now at that point the item is closed so you need to find a way to get at it
to move it or whatever. So in the timer event set a flag to true to indicate
that the item was closed by you. Then in the close event set up an array of
the item EntryID and StoreID (item.Parent.StoreID) and set another timer to
fire later on. Release all of your objects so the object is completely
uninstantiated. In the later timer event read the global array or collection
or whatever and get the item and move it where you want or do whatever with
it.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"PS" wrote in message
ups.com...
Ken
Thanks for the really quick response. I am actually doing that -
setting cancel = true (in MailItem_Send event) and that works fine. I
was thinking the implementation was something different. Beucase when
i do that - that ofcourse stops the email from going out - but the
actual email stays open.
Reading back your first post - it means that after doing that
(cancel=true) I need to call the MyItem.Save first (which I believe
will save it in inbox) and then MyItem.Close or something similar (do
i need to call that because i belive the save only saves the email but
does not close it)
Does that approach sound right?
Thanks a lot once again. really helping me