使用 JavaScript API 在 Office 2013 应用程序中监控收到的电子邮件

Monitor incoming emails in app for Office 2013 using JavaScript API

我希望使用 JavaScript API for Office 在 Outlook Online(Outlook 网络应用程序) 中监控所有新收到的电子邮件 并获取电子邮件的详细信息,如发件人、主题等。基本上我需要向发件人发送自动回复,并在主题上附加跟踪号码。

我尝试使用 Office.context.mailbox 对象,但它对我不起作用。每当我的邮箱中有一封新电子邮件时,我都需要执行我的应用程序。

对此有什么想法或建议吗?

JS API for Office 没有为此提供任何东西。您可以尝试使用 Outlook Notifications REST API. Or develop a COM add-in (VSTO) or VBA macro where you can handle the NewMailEx event of the Application class. See Selecting an API or Technology for Developing Outlook Solutions 获取更多信息。