简体   繁体   中英

How to get email address based on inbox click in outlook addin?

在此处输入图片说明 I am creating outlook addin using visual studio 2015.

I have config two email address in outlook 2016.now when I click on specific inbox I want email address of the user who belongs to the inbox.

So are you trying to figure out the owner of a particular store? Keep in mind that some stores (eg PST) do not have an intrinsic user associated with them - it could be a standalone PST or a PST with multiple POP3/SMTP accounts delivering to that store.

You can loop through the Application.Session.Accounts collection and check the Account.DeliveryStore property (compare the store entry ids using Namespace.CompareEntryIDs ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM