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: Links on Common PowerShell Automation Questions

    I've put together a list of articles which cover common questions on Exchange PowerShell Automation. These links cover issues from starting out to common problems. I hope they help. Please let me know if there are others you see as important. Starting articles on automation: Using Exchange...
  • Blog Post: Example of setting headers with System.Web.Mail

    //============================ Optional Settings ======================== if (this.Priority.Length != 0) { if (this.Priority == "Non Urgent") { oMsg.Priority = System.Web.Mail.MailPriority.Low; }; if (this.Priority == "Normal") { oMsg.Priority = System.Web.Mail.MailPriority.Normal; }; if (this.Priority...
  • 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: Comparing strings - a few samples

    I thought I would share some simple sample code which is useful for finding problems in string content. Here are three methods I wrote which are useful to see whats in a string and differences between strings. I use these with a simple program which uses two text boxes for pasting text into and a third...
  • Blog Post: System.Net.Mail with SSL to authenticate against port 465

    Sending mail using System.Net.Mail with SSL will fail: System.Net. NetworkCredential aCred = new System.Net. NetworkCredential ( "myacct" , "mypassword" ); SmtpClient smtp = new SmtpClient ( "smtp.mail.myserver.com" , 465); smtp.EnableSsl = true ; smtp.UseDefaultCredentials = false ; ...
  • Blog Post: Howto: Get Free/Busy Information with WebDAV/HTTP

    CDO 1.21, CDOEX, etc can get Free/Busy information, however WebDAV cannot directly. You may use a GET against OWA to get this information. A GET against an OWA URL is really not a WebDAV call… it’s really just plain HTTP GET call – you just need to be sure that the URL is correctly formatted. Most OWA...
  • 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: Howto: WebDAV SEARCH using C#

    ' This example shows how to do a SEARCH using C# // C# Example to SEARCH a mailbox. // TODO: // Add a button and double click on it // Add a multi-line text box and make it big. // Add a project reference to System.Xml, an System.Net // Paste-in the code below // Do the TODO sections in the code....
  • Blog Post: CDO 1.21 and Unicode Text (Japanese, Chinese, Korean, etc)

    CDO 1.21 and Unicode Text (Japanese, Chinese, Korean, etc) Having issues using CDO 1.21 with multi-byte (unicode) languages such as Japanese, Korean, Chinese? Do you want a way to create an appointment item with Japanese text using CDO 1.21? This is not as straight-forward as it should be, here...
  • Blog Post: Handling results of calling Powershell - Multivalued and string arrays.

    When calling PowerShell from managed code, you need to be aware of what is being returned and to not process properties returned always as strings. When you get information you were not expecting or no info returned from the call, you should look at TypeNameOfValue and see what is returned - this often...
  • 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: EWS - Csharp - List unread inbox messages using a restriction

    // C# sample using Exchange Web Service Proxy classes to list unread messages in an inbox using a restriction. private void FindInFolder() { // TODO: Put this code into a winform and call from a button: // TODO: create 3 text boxes called txtRequest, txtResponse, txtItems // TODO: Set the properties...
  • Blog Post: HOWTO: csharp - powershell - call get-clusteredmailboxserverstatus with managed code.

    // HOWTO: csharp - powershell - call get-clusteredmailboxserverstatus with managed code. // Sample which calls get-clusteredmailboxserverstatus and returns a list of nodes. //TODO: //#1 - Create a C# winform application and add a button. //#2 - Add namespace reference statements (using statements): ...
Page 1 of 1 (15 items)