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

1 visualización (últimos 30 días)
I cannot find something like "get current email Address" with actxserver('Outlook.Application')

Respuesta aceptada

Benjamin Großmann
Benjamin Großmann el 23 de Abr. de 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)

Más respuestas (0)

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by