Save Copy of Sent Item in a specific folder

前端 未结 1 1735
滥情空心
滥情空心 2021-01-15 05:21

I want to save a copy of a sent mail item in a specific folder.

The below code is fired when hitting "send".

The item is saved in the folder as an un

相关标签:
1条回答
  • 2021-01-15 06:08

    When ItemSend event fires, the message has not been submitted yet (you can set the Cancel parameter to true). The earliest you can see the message in the sent state is when the Items.ItemAdd event fires on the Sent Items folder.

    Why not simply set the MailItem.SaveSentMessageFolder property? Outlook will automatically move the message after it is sent. The only limitation is that the folder must be in the same store where the message was created.

    0 讨论(0)
提交回复
热议问题