Chapter 13. Scripting with the Exchange Web Services Managed API

In this chapter, we will cover the following:

  • Getting connected to EWS
  • Sending e-mail messages with EWS
  • Working with impersonation
  • Searching mailboxes
  • Retrieving the headers of an e-mail message
  • Deleting e-mail items from a mailbox
  • Creating calendar items
  • Exporting attachments from a mailbox

Introduction

Exchange Web Services (EWS) was introduced with Exchange 2007 and it gave developers the ability to write applications that previously required the use of multiple APIs such as CDOEx, Exchange OLEDB, WebDAV, and more. Today, developers can call Exchange Management Shell cmdlets from .NET-managed applications to perform administrative tasks programmatically. When it comes to manipulating the ...

Get Microsoft Exchange 2010 PowerShell Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.