开发者

Getting _MailItem interface from IRDOMail

I've an Outlook plug-in. I'm using Redemption.

Specifically, I'm using IRDOMail::Move in order to move an email item from one folder to another (redemption is the only method I've found that work with all storages). I now have a need to get back a hold to 开发者_如何转开发the Outlook's _MailItem interface, while I only have a pointer to the redemption object. It appears Redemption works with MAPI (it is derived from), and what I need is the Outlook interface.

Thanks.


Use RDOMail.EntryID property to reopen the message as Outlook.MailItem using Namespace.GetItemFromID


IRDOMAIL::MAPIOBJECT will give you the underlying MAPI object. Perhaps you can use that not somehow navigate to the Outlook interface.

Redemption uses MAPI yes and it also aims to be a be a full replacement for CDO 1.21

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜