The EWS SDK can be found here.
I suggest using Linqpad to run these code snippets as that is where they are being written.
Just add a reference to C:\Program Files\Microsoft\Exchange\Web Services\2.0\Microsoft.Exchange.WebServices.dll and a using statement for Microsoft.Exchange.WebServices.Data and you're good to go.
Sending an email using EWS is astonishingly simple and consists of just 8 lines of code:
var service = new ExchangeService(ExchangeVersion.Exchange2010); service.Credentials = new WebCredentials("myusername","mypassword"); service.Url = new Uri("https://mymailserver/ews/exchange.asmx"); EmailMessage message = new EmailMessage(service); message.Subject = "Interesting"; message.Body = "The proposition has been considered."; message.ToRecipients.Add("pointhairedboss@thecompany.com"); message.SendAndSaveCopy();