VSTO Outlook 加载项 如何从 Outlook 通讯组列表中检索 Exchange 通讯组列表成员
我有 VSTO 插件,可以从邮件项目中获取收件人并将其保存在我们的用户列表中。 在交换通讯组列表或交换联系人作为收件人的情况下,通过从这两者中提取 smtp 邮件地址可以正常工作。为此,Outlook 对象模型起作用了。
但是,当将 Exchange 通讯组列表添加为 Outlook 通讯组列表中的成员并将邮件发送到此本地通讯组列表时,就会出现问题。有没有办法从这个嵌套通讯组列表中提取每个联系人的 smtp 地址。
到目前为止,我有用户 DistListItem.GetMember(i) 方法来获取此通讯组列表的成员。它提供了一个 Recipient 对象,当我尝试从此对象访问属性 member.AddressEntry.AddressEntryUserType 时,它会抛出异常“找不到该项目”。 有谁知道如何从该收件人对象获取通讯组列表成员类型或entryId?
I have VSTO Add-in that gets the recipient from the mailitem and save it in our user list.
In case of exchange distribution list or exchange contact as a recipient it works fine by extracting smtp mail address from both of these. For this purpose outlook object model works.
but the problem arises when exchange distribution list is added as a member in the outlook distribution list and mail is sent to this local distribution list. Is there any way to extract smtp addresses of each contact from this nested distribution list.
So far I have user DistListItem.GetMember(i) Method to get a member of this distribution list. It provides a Recipient object and when i try to access a property member.AddressEntry.AddressEntryUserType from this object it throw an exception "The item could not be found".
Does anyone knows how can i get a distribution list member type or entryId from this recipient object?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)