Mark a mailitem as sent (VBA outlook)

前端 未结 2 1293
再見小時候
再見小時候 2021-01-28 22:23

I have problem with change the sent property of mail, because the property is read-only and I need to change it from the level of vba.

The problem appears after sent th

相关标签:
2条回答
  • 2021-01-28 23:15

    I resolved the problem with not very tidy way. I changed the registry key DelegateSentItemsStyle to 0 and when I did it, the sent mails went to my personal sent Items folder. Then I just move the mails to shared mailbox.

    0 讨论(0)
  • 2021-01-28 23:20

    On the low (Extended MAPI) level, send/unsent status (MSGFLAG_UNSENT bit in the PR_MESSAGE_FLAGS property) can only be changed before the item is saved for the very first time.

    Outlook Object Model is subject to the same limitation of course, and the only way to create an item in the sent state is to create a PostItem object - it is created in the sent state. You will then need to change the message class back to IPM.Note and remove the icon related properties to make sure the item looks right.

    Redemption lets you change the item's state (RDOMail.Sent is read/write until the first call to Save).

    back to your particular problem, you need to figure out why the items is left in the folder in the unsent state, not try to "fix" it.

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