Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 1.5 KB

README.md

File metadata and controls

17 lines (17 loc) · 1.5 KB

PowerShell Script for connecting to the EWS and writing a mail

In addition, there is also a filter which you can configure for your own purposes
For a detailed explanation of the script, please have a look at the Flowchart.png File.

Things you need to make sure...

  • First of all, you should run it on a server so you can create daily/weekly/monthly tasks without difficulties
  • Secondly, make sure you put the right information into the variables, otherwise you may send an E-Mail to the wrong person
  • Then of course you need to have EWS installed on your server
  • You need on software side Exchange Online which is in O365 or use an Exchange Server as on-premise

What is EWS?

"Exchange Web Services (EWS) is a cross-platform API that enables applications to access mailbox items such as email messages, meetings, and contacts from Exchange Online, Exchange Online as part of Office 365, or on-premises versions of Exchange starting with Exchange Server 2007. EWS applications can access mailbox items locally or remotely by sending a request in a SOAP-based XML message. The SOAP message is embedded in an HTTP message when sent between the application and the server, which means that as long as your application can post XML through HTTP, it can use EWS to access Exchange."

source: https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/ews-applications-and-the-exchange-architecture