2017-11-18 82 views
1

Outlook 2016 for Windows。body.getAsync()在Outlook 2016 for Windows上返回意外字符

我使用的功能Office.context.mailbox.item.body.getAsync获得的电子邮件内容:

if (Office.context.requirements.isSetSupported("mailbox", 1.3)) { 
    Office.context.mailbox.item.body.getAsync("html", function (result) { 
     if (result.status == Office.AsyncResultStatus.Succeeded) { 
      var htmlBody = result.value; 
      globalAddin.setLocalStorageItem('htmlEmailBody', htmlBody); 
      globalAddin.getEmailSignature(htmlBody); 
      window.location = 
       globalAddin.randomizeUrl("composeemail/add_contact.html"); 
     } 
    }); 
} 

这正与展望网络和Outlook 2013的Windows:

enter image description here

与Outlook 2016对于Windows,它会成功但返回未知字符ÿþ<值域中:

enter image description here

有关如何解决此问题的任何想法?

+1

奇怪的是,我使用这个功能,它在桌面上的Outlook 2016上很好。你尝试更新Outlook /尝试另一台电脑或类似的东西? – OriEng

+0

Outlook的完整版本(版本和内部版本)是什么? –

+0

谢谢。我升级到最新版本并添加了试用帐户。它在那之后工作。 – user1561904

回答

1

您是否尝试升级最新版本和正确的许可证。我在安装最新版本后解决了它,并添加了365试用帐户。