Outlook 插件 - 搜索全局地址簿
有谁知道如何在交换服务器上搜索全球通讯录?看来“地址簿”与公共联系人列表不同,因此这个流行的示例代码(或类似代码)指向一组完全不同的联系人:
Outlook.Application app = new Outlook.Application();
Outlook._NameSpace olNS = app.GetNamespace("MAPI");
Outlook._Folders oFolders = olNS.Folders;
Outlook.MAPIFolder oContactsFolder = olNS.Folders["Public Folders"].Folders["All Public Folders"].Folders["Contacts"];
我需要搜索特定的联系人姓名。 PS:- 我使用的是 Outlook 2007。 非常感谢...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您在线,则可以使用 ADSI 进行通话,离线时您可以使用在查看扩展的mapi时,这里有一个答案使用救赎。
If you are online a call using ADSI would be the way to go, offline you are in looking at extended mapi there is an answer to that here on SO using redemption.
该过程非常繁琐且容易出错。
我想您可能会发现 Add-In Express 上的以下文章很有用:
HowTo:将基于 Exchange 的电子邮件地址转换为 SMTP 电子邮件地址
我认为它不需要他们的工具即可工作,但我不太确定,因为我在尝试时拥有它们。
代码是用 VB 编写的,但如果您愿意,他们有一个 C# 示例项目可供下载。它相当长并且有很多 COM 对象调用,因此需要有这方面的经验。另外,我不太确定它是否适用于 64 位版本的 Outlook。也许你想先尝试一下。
The process is very tedious and error prone.
I think you may find the bellow article at Add-In Express useful:
HowTo: Convert Exchange-based email address into SMTP email address
I think it doesn't need their tools in order to work but I am not quite sure as I had them when I tried it.
The code is in VB but they have a sample project available for download in C# if you prefer. It is rather long and has lots of COM object calls, so experience with that will be necessary. Also I am not quite sure if it will work on the 64 bit version of Outlook. Maybe you want to try this first.