MATLAB: How to display the email address of the account that is logged in Outlook

addressoutlook

I cannot find something like "get current email Address" with actxserver('Outlook.Application')

Best Answer

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)