从 Microsoft Outlook 2010 获取服务器设置

Getting server settings from Microsoft Outlook 2010

我想从 Microsoft Outlook 2010 读取邮件服务器设置。

Outlook 配置了一个使用 Microsoft Exchange 服务器的邮件帐户。

当我依次单击 "File"、"Information"、"Account settings" 帐户”和 "Edit" 时,我看到了交换服务器的名称和用户的登录名 (这是他的电子邮件地址)。

我也被告知了密码

此外,此网络上正在使用代理。

现在我想配置一个自定义的邮件程序,使其像 Microsoft Outlook 2010 一样工作。

我正在使用我能找到的所有参数,但我没有在 Outlook 2010 中看到 SMTP 或 POP 设置。

这些是我在 Outlook 2010 中可以看到的设置:

如何获得其他设置,如 SMTP 和 POP 设置? 还是我的想法完全错了?

谢谢。

首先,在屏幕截图上你有一个 Exchange 帐户,而不是 POP3/SMTP,所以显然你不能从那里提取任何 POP3/SMTP 设置。

所有帐户类型(Exchange、POP3/SMTP、IMAP4/SMTP 等)的帐户设置都存储在可通过扩展 MAPI(C++ 或 Delphi)访问的配置文件部分中,即通过 IOlkAccountManager interface. You can play with that interface in OutlookSpy(单击 IOlkAccountManager 按钮)。 配置文件部分可直接通过注册表访问,但格式未记录。

如果使用 Redemption is an option (I am its author), it exposes all Outlook accounts and their settings through the RDOAccounts and RDOAccount 个对象。