Moving an item being sent would certainly confuse Outlook: Move() returns a
brand new item in the target folder, while Outlook will keep trying to send
the current item.
Secondly, when ItemSend event fires, the item hasn't been sent yet, so no
sender relatred props are available and it is still in teh unsent state.
Why not simply set the MailItem.SaveSentMessageFolder property to the folder
where the item is supposed to be saved after submission?
Item.SaveSentMessageFolder = ObjFolder
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> hi!
> I need to copy mailitem to other folder when it is sent.I used
[quoted text clipped - 12 lines]
> I'm using Outlook 2007 & VSTO addin
> Thanks
sd - 29 Oct 2007 15:35 GMT
Thanks !! Item.SaveSentMessageFolder worked
On Oct 26, 11:09 pm, "Dmitry Streblechenko" <dmi...@dimastr.com>
wrote:
> Moving an item being sent would certainly confuse Outlook: Move() returns a
> brand new item in the target folder, while Outlook will keep trying to send
[quoted text clipped - 29 lines]
>
> - Show quoted text -
sd - 29 Oct 2007 15:36 GMT
On Oct 26, 11:09 pm, "Dmitry Streblechenko" <dmi...@dimastr.com>
wrote:
> Moving an item being sent would certainly confuse Outlook: Move() returns a
> brand new item in the target folder, while Outlook will keep trying to send
[quoted text clipped - 29 lines]
>
> - Show quoted text -
Thanks It worked