[Outlook] Create message API with MIME mail as payload

Daniel Ostkamp 6 Reputation points
2022-04-14T13:36:57.85+00:00

Hi,
we are currently developing an Outlook addin with OfficeJS, with which a user can encrypt/decrypt emails via an Identity-Based Encryption scheme.
One of our user stories is that after decryption a copy of the decrypted mail should be stored in a folder within the mailbox of the user, and another story that a copy of the plain mail is stored for the sender such that she/he can search back the information.

However, currently I can only create emails via create message of the Graph API by providing the email as JSON payload.
But this email is then stored as draft, and is confusing for users if they see the mail as draft.
Wouldn't it be possible to accept - similar to the send message API - that the payload can be in MIME format, and subsequently, the mail is stored as is?

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
942 questions
{count} vote