EMEA Developer Support for Messaging Team Blog

Messaging Developer code samples and documentation

Browse by Tags

Tagged Content List
  • Blog Post: EWS: Update Out-of-Office (OOF) sample application

    This sample program shows how the OOF message can be manipulated using the EWS Managed API. Full source (Visual Studio 2013) is included, and the program can be run from the command-line (so can be incorporated into scripts) or with UI. When run from the Visual Studio IDE, the UI will be shown and any...
  • Blog Post: EWS: Hide a named folder in multiple mailboxes

    Recently we've had a couple of requests that involved deleting or hiding mailbox folders that are created automatically either by Outlook or Lync. Deleting such folders is usually both not supported and also not possible - they will most likely be marked as distinguished folders, which means that they...
  • Blog Post: EWS: Streaming Notification Sample

    To complete my unintentional series on EWS notifications, I have written a sample application showing how to deal with streaming subscriptions. The application includes full logging of both events and EWS calls, so is very useful for troubleshooting. The screenshot below shows the application in action...
  • Blog Post: Transport Agent: Remove extra prefixes from email subject

    If you regularly send email internationally, you may notice an issue that crops up in email conversations between two locales where the "Re." prefix differs. Basically, each time the message is replied to, another Re. (or Aw., Antwort, etc.) is tagged on to the beginning of the Subject. This is more...
  • Blog Post: Outlook Code: Change the name of the root folder in Outlook 2010 after an SMTP address change

    We have been getting a few requests for changing the name of the root folder in Outlook 2010 following an SMTP address change, to reflect the new SMTP address of the users. For that I have written an Outlook add-in that performs an Active Directory lookup of the old SMTP address (current root folder...
  • Blog Post: Outlook Code: BeforeItemMove event not being triggered for all the folders

    We have recently had a case where the BeforeItemMove event wasn’t being triggered when switching between two calendar folders in Outlook 2007 or 2010.   To subscribe for the event we were using the Outlook.Explorer.CurrentFolder property to retrieve the currently selected folder and that same object...
  • Blog Post: Drag and Drop from Outlook 2010 (Part 2 - Windows Forms Application)

    As described in a previous blog , there is unfortunately a known issue with drag/drop and Outlook 2010. The previous blog describes the issue and also demonstrates a workaround that can be used when needing to implement drag/drop in an Outlook add-in. A recent case highlighted another scenario in which...
  • Blog Post: EWS Managed API: How to remove Email1, Email2, Email3 from a contact

    An interesting case recently asked how to remove Email1, Email2, and/or Email3 from a contact using the EWS Managed API. If you try to set any of these properties to null, or an empty string, then you will receive an error when sending the request to Exchange (i.e. when you call Update()). There are...
  • Blog Post: How to change the default item type of a folder (VBScript and OOM, or EWS)

    It is possible to change the default item type of Outlook folders, and this is commonly done when custom forms are being used. The question came up recently asking whether it is possible to do this programmatically, and it certainly is. The default item type of a folder is stored in a single MAPI...
  • Blog Post: Outlook 2010: automated replies trigger spell-check

    A recent case highlighted an unusual issue verified against Outlook 2010. If you have spell-checking enabled (and it usually will be by default), and also have the "Ignore original message text in reply or forward" option checked (found in Mail Options), there is an issue when programmatically replying...
  • Blog Post: Outlook Add-in: Monitor add-ins load time

    An Extensibility Add-in code sample for monitoring Add-ins load time in Outlook: The add-in uses the OnStartupComplete event, gets the Outlook process start time and writes an event in the Application event log. The event will be similar to: Log Name: Application Source: Outlook Startup Monitor...
  • Blog Post: Outlook Add-in: Remove hidden data and personal information in Word, Excel and PowerPoint attachments

    A code sample for removing Word, Excel and/or PowerPoint hidden data and personal information in Outlook e-mail attachments: private void button1_Click( object sender, RibbonControlEventArgs e) {   Microsoft.Office.Interop.Outlook.Inspector currentInspector = this...
  • Blog Post: EWS Application: Disable OWA 2010 Conversation View

    Exchange 2010 OWA Folder View Settings are stored in a MAPI property and are customizable per folder. Conversation View is enabled by default in OWA 2010 and even if you disable it on the existing folders, new folders you create will always have Conversation View enabled. The property that stores...
  • Blog Post: Purging Outlook Sync Issues folders

    When a question pops up twice in a short space of time, it's usually worthy of a blog. Outlook when running in cached mode against Exchange has a Sync Issues folder. In here you will find details of any issues that occur when Outlook syncs it's offline cache with Exchange. If there are problems with...
  • Blog Post: GetContactPictureAttachment, SetContactPicture and Exchange 2007

    The EWS methods GetContactPictureAttachment and SetContactPicture are not available in Exchange 2007, so how do you programmatically access a contact's picture? Fortunately, Exchange 2007 still supports CDO. While is it de-emphasized, this simply means that while it is recommended to use EWS where...
  • Blog Post: Enable-Mailbox against Exchange 2010 from a web application

    A question that seems to keep popping up is how to run the Enable-Mailbox cmdlet from a web-application. I have had a couple of cases on this recently, so here are the details on how to achieve this for Exchange 2010. I do also have an example web application that works against Exchange 2007, which I...
  • Blog Post: EWS Push Notification Example Application

    Note : I have written another sample application which does not use WCF (and also shows how to integrate easily with the EWS Managed API). This sample is available here: http://blogs.msdn.com/b/emeamsgdev/archive/2012/12/20/ews-push-notification-sample.aspx I had a case where a customer was having...
  • Blog Post: Drag and Drop from Outlook 2010 (Part 1 - Outlook Add-in)

    We have had a few cases come up recently to do with issues implementing drag and drop in an Outlook add-in. There is an issue in Outlook 2010 that doesn't release selected items once they have been dragged to a drop-target. This means that once the drag/drop operation has been completed, the items selected...
Page 1 of 1 (18 items)