New mail with multiple attachments with command line

We support two ways to accomplish that:

  1. The recommended way is to use the standard Windows Simple MAPI interface through the MAPISendMail function (https://docs.microsoft.com/en-us/windows/win32/api/mapi/nc-mapi-mapisendmailw).

  2. The alternative way is to create .eml file with the mail content in RFC 5322 format and header X-Unsent: 1. It can be opened through MailClient.exe /open file.eml and it will result in opening the mail as a draft ready to be sent.

1 Like