I have emails as a ZIP file which contains the HTML version of it (1 html file and optional attachments). How can I convert these html emails to a .msg file using PowerShell?
It seems to be possible to at least work with Outlook:
$outlook = New-Object -ComObject Outlook.Application
And unzipping looks like an easy task according to How to unzip a file in Powershell?
On HTML Email to .MSG there is a similar question, but not really a practical answer so far.