Using Outlook (COM) with Matlab: how to access an account not set as default
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Pierre Harouimi
2021-10-24
Hi,
You can select any of your Outlook accounts with the field mapi.Folders.Item.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!