Reading emails from multiple accounts using Outlook, also moving emails
5 views (last 30 days)
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');
How can I access the other accounts?
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.