Reading emails from multiple accounts using Outlook, also moving emails

조회 수: 3 (최근 30일)
Michael Robbins
Michael Robbins 2019년 6월 19일
답변: Pierre Harouimi 2021년 10월 24일
Hello. I am a long-time MATLAB user and have played with Outlook from MATLAB to great affect with very few commands.
I would like to do two things and I cannot seem to find out how.
1) I can access the "Outlook" inbox, but not the inboxes and folders of other accounts that I have in Outlook, e.g. my various email addresses of which I have a few, using this:
outlook = actxserver('Outlook.Application');
mapi=outlook.GetNamespace('mapi');
INBOX=mapi.GetDefaultFolder(6);
How can I access the other accounts?
Clipboard01.jpg
2) I would like to move emails between accounts because I find the Outlook rules feature a bit clunky. Perhaps the MailItem.Move method can do this. Could someone help with this as well?
I am running MATLAB 2019a and Microsoft Office Professional Plus 2019 on Windows 10 Professional.
Thanks in advance.
  댓글 수: 1
Verena Schwachmeyer
Verena Schwachmeyer 2019년 8월 20일
I have exactly the same two questions and just cannot figure them out. Does anyone have an idea? I would be very grateful for any hint.
Sorry Michael that I cannot provide an answer. Did you get any further with this?
Kind regards,
Verena

댓글을 달려면 로그인하십시오.

답변 (1개)

Pierre Harouimi
Pierre Harouimi 2021년 10월 24일
For the first need, please refer to this MATLAB Answer

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by