How can I display the email address of the account that is logged in Outlook?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ioonut
le 19 Mar 2018
Réponse apportée : Benjamin Großmann
le 23 Avr 2018
I cannot find something like "get current email Address" with actxserver('Outlook.Application')
0 commentaires
Réponse acceptée
Benjamin Großmann
le 23 Avr 2018
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Import and Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!