VBA:如何获取当前Outlook用户的SMTP电子邮件地址列表? [英] VBA: how can I get a list of the SMTP email addresses for the current outlook user?

查看:446
本文介绍了VBA:如何获取当前Outlook用户的SMTP电子邮件地址列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何获取当前用户的主要电子邮件地址,但是如何获取其所有SMTP电子邮件地址的完整列表?

I know how to get the primary email address of the current user, but how can I get a full list of all their SMTP email addresses?

我正在寻找右键单击电子邮件中的收件人并转到打开Outlook属性"并转到电子邮件地址"标签

I'm looking for the information you can get when you right-click on a recipient in an email and go to "open outlook properties" and go to the "E-mail Addresses" tab

谢谢!

推荐答案

使用Namespace.CurrentUser.AddressEntry.PropertyAccessor.GetProperty读取PR_EMS_AB_PROXY_ADDRESSES MAPI属性(DASL名称http://schemas.microsoft.com/mapi/proptag/0x800F101F).

Read the PR_EMS_AB_PROXY_ADDRESSES MAPI property (DASL name http://schemas.microsoft.com/mapi/proptag/0x800F101F) using Namespace.CurrentUser.AddressEntry.PropertyAccessor.GetProperty.

您可以在 OutlookSpy 中看到地址-单击IMAPISession按钮,单击QueryIdentity

You can see the addresses in OutlookSpy - click IMAPISession button, click QueryIdentity

这篇关于VBA:如何获取当前Outlook用户的SMTP电子邮件地址列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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