Using Outlook (COM) with Matlab: how to access an account not set as default
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
i am using the following commands to connect Outlook to Matlab (with the intention to read mails):
outlook = actxserver('Outlook.Application');
mapi=outlook.GetNamespace('mapi');
Now, instead of using mapi.GetDefaultFolder(6) to get the inbox of the default mail account, i would like to get the inbox of other Outlook accounts.
Thanks in advance for your help
0 commentaires
Réponses (1)
Pierre Harouimi
le 24 Oct 2021
Hi,
You can select any of your Outlook accounts with the field mapi.Folders.Item.
0 commentaires
Voir également
Catégories
En savoir plus sur Use COM Objects in MATLAB 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!