Forum Discussion
StefanKi
Oct 27, 2020Iron Contributor
access mails in exchange online mailbox
Can I access (I like to save the email as a file) the mails in a mailbox online using Powershell via Exchange online?The necessary permissions are required.
StefanKi
Oct 27, 2020Iron Contributor
Many thanks for the answer.
Under the inbox a folder structure should be cleaned up
Inbox
abc
one
two
Now I want to look into every mailbox and do this with all emails in the folder "abc":
- save the email as MSG file in a folder structure
- edit the subject of the email with a marker
I have already implemented this with Powershell and Outlook. But I don't like the implementation because I would like to use it as a central service.
VasilMichev
Oct 28, 2020MVP
So yeah, the EWS API is what you should be looking for. To manage other mailboxes, you will need either Full Access permissions, or impersonation. You can call the EWS API from within PowerShell if needed.