Skip to content

Shows working example of how to subscribe to a new email notification using Exchange Web Service ( Exchange 2016 ).

Notifications You must be signed in to change notification settings

webdevotion/exchange-web-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitor an Inbox via EWS

Using Exchange Web Service or EWS we can subscribe to notifications. This script subscribes to incoming events on Inbox and was developed against an Exchange 2016 server.

This script has not been used in production and is nothing more than a working example for you to tinker with.

Instructions

Run this script from the command line but first edit the values of EWS, USER, and PWD to reflect your situation.

EWS=https://ews.domain.com/EWS/Exchange.asmx [email protected] PWD=xyz node ./index.js

Example Output

This email is a reply on an email that was sent. It's up to you to parse the body into useful chunks.

EWS=https://ews.domain.com/EWS/Exchange.asmx [email protected] PWD=xyz node ./index.js

= = = = = = = = = = = = = = = = = = = =
LOADING DETAILS FOR EMAIL: Re: new email event stream
= = = = = = = = = = = = = = = = = = = =
text: Hi,

Is this a working example?




From: Jane Doe <[email protected]>
Date: Tuesday, 22 September 2020 at 09:24
To: John Doe <[email protected]>
Subject: new email event stream

Hi

Please find an example in attachment.

attachments: true

disconnected, will attempt to reconnect

About

Shows working example of how to subscribe to a new email notification using Exchange Web Service ( Exchange 2016 ).

Resources

Stars

Watchers

Forks

Packages

No packages published