Dan's WebDAV 101

This blog covers Messaging API development for Exchange and Outlook. My name is Daniel Bagley, I'm on the Messaging Developer Team.

Browse by Tags

Tagged Content List
  • Blog Post: HowTo: Create a mailbox for an existing user, Create a user in AD, List AD User info.

    //====================================================================================================== // CdoexmMailboxUtil - // Exchange Mailbox and user account creation sample. // // This sample demonstrates the following: // Creating a user account in AD // Mail Enable an existing...
  • Blog Post: Howto: Mail Enable, Mail Disable and view Mail settings for a Public Folder with CDOEX and CDOEXM

    If your living in a pre Exchange 2007 Powershell worlds and want to mail enable or disable public folders, you may come to the point where you will be needing to write some CDOEX and CDOEXM code to do what you want. Below is a C# sample console application which will allow you to mail enable, mail disable...
  • Blog Post: Broken Exchange Schema - WebDAV allprops, sinks and/or exoledb fail to return properties

    Not getting all the properties you would expect from an WebDAV ALLPROPS or from an Event sink? Well, it could be that the Exchange schema is broken. The Problem: If you find that your application is no longer retrieving a full list of properties, it may be due to a broken Exchange Web Store...
  • Blog Post: HOWTO: Set and Get the a multibyte (Japanese, Chinese, Etc) custom header with CDOSYS

    Custom headers in multibyte languages (Japanese, Chinese, etc) will not be encoded properly when set using CDO alone. They may appear to be correctly set, however when read back on a recieved message they may be messed-up. Here is an example of a Japanese header: I had a case where a customer wanted...
  • Blog Post: My .EDB file grows when I search.

    When doing a WebDAV or any other search, you will likely see the .EDB file expands. When performing a search against a mailbox using WebDAV or any other API, you may see the .EDB file grow in size. Don't panic, this is normal. When a search is performed, Exchange will put the results into a search...
  • Blog Post: 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...
  • Blog Post: Example of setting headers with CDOSYS

    //============================ Optional Settings ======================== if (this.Priority.Length != 0) { // Well... it seems that priority is not what needs to be set to get priority set... // Looks like setting importance will set priority... at least for cdosys... hmmm if (this.Priority == "Non...
  • Blog Post: Call Dispose on client when calling COM+ objects.

    Dispose MUST be called from the client and not from the serviced component... There is a requirement for clients of COM+ Serviced Components to call dispose on the component. If you do not do this, it will not shut down. When you inherit from servicedcomponent, you also inherit from IDisposable...
  • Blog Post: Howto: CDOSYS/C# Sending an ICS file

    Todo: 1) Open an appointment in Outlook. Save to file as an .ICS file. 2) Create a C# project and add the code below. 3) Do the TODO sections. 'TODO: Add a refernce to CDOSYS using System.IO; private void btnSendUsingIcs_Click(object sender, System.EventArgs e) { string sFrom = " me@mycompany.com...
  • Blog Post: Why can't WebDAV read BCC?

    Using WebDAV to read BCC information on messages (even in the Drafts folder) will not work. The “urn:schemas:mailheader:bcc” will not return the BCC information using WebDAV - this is expected behavior. If you do a GET against the message to get the MIME, then you will also not get the BCC - this also...
  • Blog Post: How do I work with Tasks using WebDAV.

    WebDAV was not designed for working with outlook specific items such as Tasks and is not supported. To work with tasks, you will to reverse-engineer the solution and in order to construct the proper XML to be used for a PROPPATCH/PROPFIND. Tasks are supported to be worked with using Outlook Object Model...
  • Blog Post: Building VCALENDAR content without an Microsoft API is not supported by MS.

    While Microsoft products follow many RFC guidelines for VCALENDAR/iCAL, it does not mean that they support development of VCALENDAR/iCAL directly. Microsoft has APIs which can build and read such content. Working with those APIs is supported; however working with VCALENDAR/iCAL text programmatically...
  • Blog Post: HOWTO: Attatch .ics, .mht files with CDOSYS/System.Web.Mail

    Note: By setting the ContentMediaType property of the attatchment body part object to "text/html", you should be able to properly attatch most any type of file. This includes .mht, .ics, etc. Example: // Attatch needed files. // TODO: Change this section or comment-out String sFile = @"C:\dev\mapi...
  • Blog Post: How to access or change OWA settings for Exchange 2007/2003/2000?

    There is no supported way of changing OWA settings using WebDAV for Exchange 2007. Under Exchange 2000 and 2003, there were properties on the mailbox root which could be changed via code. However OWA 2007 is a much different animal. Under Exchange 2000 and 2003, there are properties which you could...
  • Blog Post: HOWTO CDOEX C#: How to extract VCalendar stream from an appointment.

    ' TODO: ' Create a C# Winform app ' Reference to Microsoft CDO for Exchange 2000 Server Library (COM) - this ' will add a reference to ADO automaticlly. ' NOTE: Do not add a reference to ADO or ADO.NET - this will cause interferance ' with CDOEX/CDOSYS (which you may not see until processing body parts...
  • Blog Post: How to read free/busy information using CDOEX and VBS?

    Below is a .VBS sample... please note that this needs to run from the Exchange server. '--------------------------------------------------------------------------------------------------------- ' getfb.vbs - Get Free/Busy information using CDOEX and VBS ' This code must run from Exchange Server '...
Page 1 of 1 (16 items)