Outlook 2016 for Mac,addFileAttachmentAsync不适用于内嵌图片

时间:2018-03-08 12:06:07

标签: javascript office-js outlook-web-addins

尝试以下示例(如此处所述https://dev.office.com/reference/add-ins/outlook/1.5/Office.context.mailbox.item?product=outlook&version=v1.5

Office.context.mailbox.item.addFileAttachmentAsync
(
  "http://i.imgur.com/WJXklif.png",
  "cute_bird.png",
  {
    isInline: true
  },
  function (asyncResult) {
    Office.context.mailbox.item.body.setAsync(
      "<p>Here's a cute bird!</p><img src='cid:cute_bird.png'>",
      {
        "coercionType": "html"
      },
      function (asyncResult) {

      }
    );
  }
);

这适用于Outlook for Windows。但它对Mac来说并不适用。附件确实包含在邮件中。但是图片不会显示。

我尝试使用不同的图片格式并将isInline选项设置为false。

有没有办法让这个功能适用于Mac?

0 个答案:

没有答案