EASTester 1.10 Release

This release has some new features and several important fixes. The goals of this release were to fix existing bugs and to add some features to make its usage easier. Now there is some basic help available for working with EAS. The help provides information on EASTester, EAS response codes, IIS response codes and a…

0

New release – EWSEditor 1.15

This is mostly a bug fix release. However, there are a few new features. This version uses the same version of the EWS Managed API as the 1.14 version of EWSEditor, which was built from GIT source. •    Enhanced the Tasks window. •    New Developer Attachments Test Form. •    Now can work with attachments in contacts, tasks, calendar…

0

EWS and Federated Authentication

Many are joining enjoying the benefits of federated authentication with OWA. However, with EWS they find that they cannot use federated authentication. EWS can use Basic, NTLM and oAuth for authentication.  EWS does not support things like SAML tokens, etc.  There is also no developer support for changing authentication token credentials programmatically – such as…

0

Testing sample which uses HttpWebRequest to do a POST to EWS

There are sometimes issues encountered which are difficult to resolve. There are many things which can cause issues which would call an EWS call to fail. Having well written with extensive error trapping and extensive logging is one approach. I wrote the sample below so that it could be used from any type .NET application…

0

Sample: Use JavaScript with OOM to create an email with an attachment and display it in Outlook for sending.

This sample shows how OOM can be used with JavaScript from the command line. Use cscript to launch it – this will cause the script to write the output to the command window.   // Use this command line:  cscript test.js function test() { WScript.Echo(‘Start ————-‘); try { var outlook = new ActiveXObject(‘Outlook.Application’); var email = outlook.CreateItem(0);…

0

Howto: Example to retrieve the body property of a message using the Exchange Managed API.

          public string GetItemMime(ItemId oItemId)         {             string sReturn = string.Empty;             PropertySet oMimePropertySet = new PropertySet(ItemSchema.MimeContent);             Item oItem = Item.Bind(_ExchangeService, oItemId, oMimePropertySet);             return   oItem.MimeContent.ToString() ;                      }           public string GetItemMime(Item oItem)         {             PropertySet oMimePropertySet = new PropertySet(ItemSchema.MimeContent);             oItem.Load(oMimePropertySet);             return oItem.MimeContent.ToString();           }

2

Howto: Example to retrieve the html body property of a message using the Exchange Managed API.

        public string GetMessageBodyAsHtml(Item oItem)         {             string sRet = string.Empty;               PropertySet oPropSet = new PropertySet(PropertySet.FirstClassProperties);             oItem.Load(PropertySet.FirstClassProperties);               PropertySet oPropSetForBodyText = new PropertySet(PropertySet.FirstClassProperties);             oPropSetForBodyText.RequestedBodyType = BodyType.HTML;             oPropSetForBodyText.Add(ItemSchema.Body);             Item oItemForBodyText = Item.Bind((ExchangeService)oItem.Service, oItem.Id, (PropertySet)oPropSetForBodyText);             oItem.Load(oPropSetForBodyText);             sRet = oItem.Body.Text;             return sRet;         }

1

Howto: Example to retrieve the body property of a message using the Exchange Managed API.

        public string GetMessageBody(Item oItem, BodyType oBodyType)         {             string sRet = string.Empty;               PropertySet oPropSet = new PropertySet(PropertySet.FirstClassProperties);             oItem.Load(PropertySet.FirstClassProperties);               PropertySet oPropSetForBodyText = new PropertySet(PropertySet.FirstClassProperties);             oPropSetForBodyText.RequestedBodyType = oBodyType;             oPropSetForBodyText.Add(ItemSchema.Body);             Item oItemForBodyText = Item.Bind((ExchangeService)oItem.Service, oItem.Id, (PropertySet)oPropSetForBodyText);             oItem.Load(oPropSetForBodyText);             sRet = oItem.Body.Text;                         return sRet;         }

0

Howto: Add a body part to a message using CDOSYS.

The sample below shows how to add an additional body part to a message using cdosys.  This example demonstrates adding a “text/calendar” (vcalendar) body part, however it should be possible to use this to add “text/plain”, “text/html” and other types.  In the sample, “this.VCalendarText” holds the text to be written to the body part (in…

0