Using Outlook (COM) with Matlab: how to access an account not set as default
조회 수: 7 (최근 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!