HOWTO: EWS: Consume Exchange Web Service from VBScript

Yes you can consume Exchange Web Service using VBScript or any language / platform which support HTML. In this sample, I have used XMLHTTP to send/receive soap request/response. Then I have used MSXML Document to parse the XML returned by the server to get the response code. I have converted my recently posted sample, HOWTO:…

7

HOWTO: EWS: Disable Out-of-office / OOF message

WebDav is definitely de-emphasized and not recommended to develop applications for Exchange 2007. But WebDav was still the easiest method to disable OOF message. I was not surprised to see it NOT working against Exchange 2007 to disable the OOF message. I have a better solution for you… use my favorite technology, Exchange Web Services!!!…

4

HOWTO: EWS: Find all folders inside a parent folder, helpful in generating a folder tree

Looks cool isn’t it? I have created this folder tree for my mailbox using Exchange Web Services. You can do the very same. Here is the code which I am using to get all the folders inside a folder and recursively go deep-n-deep until your reach the core. Here is the sample code…          …

11

HOWTO: EWS: Add attachments to existing items on server

Forgot to add that attachment? Using exchange web service you can add it back to the item on the server. The code is simple and very easy to understand. It takes two parameters itemID – where attachment will be added, & strFileName – complete path to the local file. private bool AddAttachment(String itemID,String strFileName) {…

4

HOWTO: EWS: Get LastModifiedTime for Items

So wondering where is LastModifiedTime? Exchange Web Services does not seem to give you the hint when the item was last modified. This property is not available in ItemType and expected to be available only after Exchange 2007 SP1. You can get the LastModifiedTime with the help of ExtendedProperty. I have created a sample to…

4

HOWTO: EWS: Use GetAttachment to download attachments off Mail/Appointment

I have fallen for exchange web services. There are endless possibilities with exchange web services, and product group is still working to make it even better. Today I have created a neat sample to download attachments off Exchange Server Sample: DownloadAttachments Input Params: itemID , folder public void DownloadAttachments(string itemID,string folder) { ExchangeServiceBinding esb =…

17

HOWTO: GetFolder, FindItem, Restriction, GetItem

This is an attempt to extend my previous code sample Getting into a folder by path using EWS With this code sample I have demonstrated HOWTO find items under a folder. I have used Restriction to list down all the "IPM.Note" items falling under a specified date/time span. class EWS_SAMPLE { static void Main(string[] args)…

16