如何从 Outlook Office 附加组件发送电子邮件?

发布于 2025-01-16 00:19:05 字数 316 浏览 1 评论 0原文

我正在尝试使用 React 构建一个 Outlook 插件。我到处寻找,试图找到使用打开插件的邮箱的东西,以编程方式向指定用户发送电子邮件。

类似于google的命令:

  GmailApp.createDraft(e.parameters.address, e.parameters.subject, e.parameters.body, {
    htmlBody: e.parameters.body,
    name: 'Automatic Sender'
  }).send();

Outlook上是否可以使用邮件发送过程?

I am trying to build an outlook add on, using react. I looked everywhere trying to find something that uses the mailbox in which the addon has been opened from, to programmatically send an email to a specified user.

Something similar to the google's command:

  GmailApp.createDraft(e.parameters.address, e.parameters.subject, e.parameters.body, {
    htmlBody: e.parameters.body,
    name: 'Automatic Sender'
  }).send();

Is the mail-sending process available on outlook?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷︶言冷语的世界 2025-01-23 00:19:05

Outlook Web 加载项仅在当前选定项目的上下文中工作。 OfficeJS 不提供任何以编程方式创建和发送电子邮件的功能。

在 Outlook 加载项中,您可以考虑使用 EWS,请参阅 从 Outlook 加载项调用 Web 服务以获取更多信息。您还可以查看 Graph API作为一个可能的解决方法。

Outlook web add-ins work under the context of currently selected item only. OfficeJS doesn't provide anything for creating and sending emails programmatically.

In Outlook add-ins you may consider using EWS, see Call web services from an Outlook add-in for more information. Also you may take a look at the Graph API as a possible workaround.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文