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: Exchange Web Service PUSH to a Windows Mobile Device.

    OK, I’m not exactly the hard-core Windows Mobile developer here. However, I had a recent issue with a customer who wanted to be able to use a PUSH to a windows mobile device which would be in stand-by. Their goal was to save on the battery life. Let’s start off with this: · WM devices support...
  • Blog Post: Enumerating fields for CDOSYS, System.Web.Mail and System.Net.Mail

    There are times when you may want to enumerate the fields set on a message while debugging issues with CDOSYS, System.Web.Mail, or System.Net.Mail. Below is sample code which will enumerate these fields. As you can see, there are some considerable differenences between how enumeration is done. CDOSYS...
  • Blog Post: Adding Inline Attachments with CDOSYS and System.Net.Mail.

    In the following samples, I'm going to send an inline attachment using CDOSYS and System.Net.Mail (SNM). Lets say you have an html document with text above and below a jpg file and you want this document inside of a message you are going to send. Below is the the basic HTML document. Notice that img...
  • Blog Post: Howto: Add a body part using System.Net.Mail

    The sample below shows how to add an additional body part to a message using System.Net.Mail. 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...
  • Blog Post: Example of setting headers with System.Net.Mail

    Here is a partial sample on setting header fields with System.Net.Mail: //============================ Instance Message =========================== oMsg = new System.Net.Mail.MailMessage(); //============================ Optional Settings =========================== if (this.Priority.Length...
  • 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: 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: 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...
Page 1 of 1 (9 items)