You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mac Outlook 2016中mailbox.item.body.getAsync()遇无效HTML返回空串求助

Hey everyone, I came across a frustrating inconsistency between Mac Outlook 2016 and the web-based Outlook when working with the Office JavaScript API. Here's what I found:

环境配置
  • Mac Outlook 2016客户端

The Problem

When calling the mailbox.item.body.getAsync() method (with HTML coercion type enforced) on an email containing invalid HTML, the API returns an empty string instead of the actual body content.

Example of Invalid HTML in Question

Here, "invalid HTML" refers to scenarios where the content lacks a closing <html> tag, like this snippet:

<div> <div> Foo bar </div> </div>

Contrasting Behavior in Web Outlook

On the other hand, executing the exact same API call in the web version of Outlook (Chrome browser, Office 365 environment) works as expected—it returns the full email body without any issues.


内容的提问来源于stack exchange,提问作者Sameera Jayaseckara

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 08:36:22