Recipient.Address返回不正确的数据

时间:2017-03-14 12:01:18

标签: outlook outlook-addin

如果我从联系人中获取用户(在插件中添加Outlook)并执行此操作:

Outlook.Recipient recipient = c.GetMember(i);
AplicationLog(recipient.Address);

它会返回:

/0=:someData:/ou=Exchange Administrative Group (:someData:)/cn=Recipients/cn=:curentUserName:eed

将“eed”添加到用户名。只有一个。

为什么这样做?我该如何解决这个问题?

P.S。在打印之前,我没有对这些数据做任何事情。

1 个答案:

答案 0 :(得分:0)

这看起来像是一个完全有效的EX(而不是SMTP)地址。 如果AddressEntry.Type是“SMTP”,请使用AddressEntry.Address。如果键入==“EX”,请使用AddressEntry.GetExchangeUser().PrimarySmtpAddressRecipient.AddressEntry属性返回AddressEntry对象。

相关问题