Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
The lastest version of outlook no longer supports com automation, so an older version needs to be installed.
The approach I use is to use graph API to create a draft message, then open the draft in the browser version of outlook via the url supplied by graph API. Note, this only works with Microsoft email servers.