在VC ++中从Outlook获取交换服务器的联系人或电子邮件域的SMTP地址 [英] Getting SMTP address of a contact or email domain of exchange server from Outlook in VC++

查看:111
本文介绍了在VC ++中从Outlook获取交换服务器的联系人或电子邮件域的SMTP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://www.craigmurphy.com/blog/?p=868)来解决此问题,但是这种方法在未连接到公司域的系统中无法正常工作.

是否还有其他方法可以找到列表中列出的联系人的SMTP地址?交换目录?该解决方案需要在所有情况下都适用于Outlook 2007及更高版本.

如果我们可以获取与交换服务器关联的电子邮件域,那么我们也可以形成SMTP地址.但是,我们只能检索Exchange服务器的这些属性-ExchangeConnectionMode,ExchangeMailboxServerName,ExchangeMailboxServerVersion-这些都不给我们相关的电子邮件域.有没有办法从与Outlook Server连接到该Exchange Server的系统中以编程方式找出与该Exchange Server相关的电子邮件域?

先谢谢了.
-Nishant

Hi,

We are developing a client-side VC++ application (in VS 2008) to read email addresses from Outlook Contacts. We are facing a problem where the email address retrieved is in exchange format ("/o=XXX/ou=First Administrative Group`/cn=Recipients/cn=xxxxxx"). We implemented an approach (mentioned here - http://www.craigmurphy.com/blog/?p=868) to resolve this issue, but this approach does not work properly in systems that are not connected to corporate domain.

Is there any other way of finding out SMTP address for a contact that is listed in the exchange directory? The solution needs to work for Outlook 2007 and above versions in all the scenarios.

We can also form the SMTP address if we can get the email domain associated with the exchange server. However, we were able to retrieve only these properties of Exchange server - ExchangeConnectionMode, ExchangeMailboxServerName, ExchangeMailboxServerVersion - and none of these gives us the related email domain. Is there a way to find out the email domain associated with the exchange server programmatically from a system which has Outlook connected to that exchange server?

Thanks in advance.
- Nishant

推荐答案

(固定在VSTO论坛顶部),解释了为什么您的问题在VSTO论坛中不合时宜.它还列出了与非VSTO,Office相关的问题的可能资源.每当您发布有关Office应用程序的问题时,请记住要包含有关所涉及的版本的信息.
The Please Read Fist message pinned at the top of the VSTO forum explains why your question is off-topic in the VSTO forum. It also lists possible resources for non-VSTO, Office-related questions. Whenever you post a questions about an Office application, please remember to include information about the version involved.


这篇关于在VC ++中从Outlook获取交换服务器的联系人或电子邮件域的SMTP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆