How can I display the email address of the account that is logged in Outlook?

1 次查看(过去 30 天)
I cannot find something like "get current email Address" with actxserver('Outlook.Application')

采纳的回答

Benjamin Großmann
Benjamin Großmann 2018-4-23
Maybe you can use the SmtpAddress Property of the account object?
clearvars, close all, clc
acx = actxserver('outlook.Application');
acc = acx.Session.Accounts.Item(1); % adapt, if you have more than one account and select a specific one
disp(acc.SmtpAddress)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by