We support two ways to accomplish that:
-
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).
-
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 throughMailClient.exe /open file.eml
and it will result in opening the mail as a draft ready to be sent.