Reputation: 884
I am looking to monitor all new incoming emails in Outlook Online (Outlook web App) using JavaScript API for Office and get the email's details like sender, subject etc.. Basically I need to send an auto reply to sender with tracking number attached to subject.
I tried to use Office.context.mailbox object, but it didn't work for me. I need to execute my app every time whenever there is a new email in my mailbox.
Any Ideas or suggestions on this?
Upvotes: 0
Views: 304
Reputation: 49397
JS API for Office doesn't provide anything for that. You may try to use 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 for more information.
Upvotes: 1