GithubHelp home page GithubHelp logo

webdevotion / exchange-web-services Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 10 KB

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

JavaScript 100.00%

exchange-web-services's Introduction

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

exchange-web-services's People

Contributors

webdevotion avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.