HOWTO: OOM: Getting Primary SMTP Address from X500

Getting primary address from X500 address was always a pain when using OOM. Thank to these guys who realized this pain and built in this functionality in Outlook 2007 Object Model. I have figured out a way to get this value from within OOM for Outlook 2003 & below as well. How it works ============…

5

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

EWS: BillingInformation is available only to TaskType

If you have ever tried to update BillingInformation of any item, other than tasks, using EWS then you may already know that BillingInformation is missing from Exchange Web Services object model and available only to TaskType. Although if you check the Outlook 2007 object model, it is available for MailItem, TaskItem, AppointmentItem, and to many…

1