How to send nested attachments?

三世轮回 提交于 2019-12-21 02:36:13

问题


Stuck here writing JS code to send out an email via REST within a custom Outlook add-in.

Scenario is following

report
 \
  \---- another message (item attachment)
         \
          \------- attachment (file attachment)

In words, I am sending a new report message which includes another message as an Item Attachment (that works fine).

But now, the problem is that, when sending with another message that has attachments, then this fails. Opening the report which has the other message attached doesn't show the attachments.

Query is POST https://outlook.office365.com/api/v2.0/me/sendmail

Returns 202 Accepted

Body is quite long and on this Gist https://gist.github.com/binarykitchen/2b95331c5c85e7cb4ca6f6917dc67a67

You can see Message has Attachments which has an Item Attachment (attaching another message) which has one file attachment called "bat_kitten.jpeg"

How come this sent message doesn't have this file attachment but server still responds with accepted 202?

Maybe some parameters are wrong? Not sure what to set for ContentId and ContentLocation for that file attachment?

Or are nested attachments not supported yet?

Any clues would be very much appreciated.

来源:https://stackoverflow.com/questions/51093960/how-to-send-nested-attachments

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!