使用 Outlook 设置电子邮件延迟传递 Javascript API

Set Delay Delivery on emails using Outlook Javascript API

我正在使用 Script Lab 在 Outlook 2016 和 Outlook Web 上测试一些代码。

我的用例很简单:当我单击插件中的按钮时,我希望在今天2 天后 发送电子邮件。我知道直接在界面中是可能的,但这只是稍后对最大插件的测试。

我正在尝试通过 Javascript API。 我继续 API reference,但找不到如何更改电子邮件的延迟递送 属性。

是否可以使用 API 编辑此 属性? 有人知道怎么做吗?

感谢您的帮助

OfficeJS 没有提供开箱即用的任何东西。但您可以考虑使用 EWS,请参阅 Call web services from an Outlook add-in for more information. The How to: Delay sending an email message by using the EWS Managed API 2.0 文章解释如何使用 EWS Managed API.

延迟发送电子邮件

另一种可能的选择是Graph API