Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » CDOEX   (RSS)

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

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

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

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

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,

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.

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

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,

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

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,

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

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

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

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

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
More Posts Next page »
 
Page view tracker