How can I display the email address of the account that is logged in Outlook?
5 次查看(过去 30 天)
显示 更早的评论
I cannot find something like "get current email Address" with actxserver('Outlook.Application')
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Web Services 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!