office365api - Outlook Mail REST API: send message with attachment -
i'm trying use next api method: https://msdn.microsoft.com/office/office365/api/mail-rest-operations#sendmessages. sending messages without attachments works fine, can not understand how send message attachments.
according docs, message
structure can contain array of attachments
items of type https://msdn.microsoft.com/office/office365/api/complex-types-for-mail-contacts-calendar#restapiresourcesfileattachment . problem in field contentbytes
-- impossible dump bytes json before sending request api method (actually dumping blob json nonsense).
how should pass attachments
using rest api @ all?
thanks.
there's example of passing attachment on page: https://msdn.microsoft.com/office/office365/api/mail-rest-operations#sendmessageonthefly
Comments
Post a Comment