HowTo: Set a reference to CDOSYS

You could set a reference directly to the CDOSYS file. However, there this is a more elegant way overall and that is to do it in Visual Studio: Click on Solution Explorer. Right click the “References” node in the tree and select “Add Reference…”. Click on the COM tab. Navigate to the “Microsoft CDO for…

0

About: Encrypting or signing a message programmatically

We get cases on encrypting email from time to time.   With Microsoft messaging APIs, sending an encrypted or signed message is not just  matter of flipping flag or pointing to a certificate.  The easiest is going to be using Outlook Object Model (OOM);  however, because of its user tied usage it cannot be used in a…

0

About: System.Net.Mail (SNM)

API Type: SMTP Sender API Interface: .NET Framework Namespace Classes. Business Logic: Sending mail via SMTP. Language Support: .NET Languages only. Direct Property Access: N/A. Product Versions: .NET Framework 2.0 and later (as of .NET 3.5).   Summary: SNM is a pure .NET namespace for sending mail via SMTP.  System.Net.Mail replaces System.Web.Mail, which was a partial .NET wrapper for…

0

Best Practices – What is supported and not.

The issue of supportability comes up a lot.  I would like cover it in this blog post. When we get cases from customers we look at the servers, software and APIs involved.  In addition, the development scenarios and configurations are taken into considerations. A lot of customers run outdated versions of Exchange and Outlook – such as…

0

Microsoft Developer Support does not write or maintain customer production code.

Microsoft Developer Support does not write or maintain customer production code. If you want Microsoft to do the changes and implement production code, then MCS would be the more appropriate Microsoft organization. Also, you could engage a Microsoft Partner, or any other third party developer entity to assist. Microsoft Developer Support can assist with going…

1

Getting a list of mailboxes with WebDAV

OK, WebDAV does not have the ability itself to get a list of mailboxes.  However you can use other APIs and even use an OWA call to get a list of mailboxes.   Reading the GAL:   WebDAV itself cannot do this.  You could use the OWA GALFIND command, which has some limited ability.  You…

11

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”;      //  TODO: Change string sTo = “me@mycompany.com”;  //  TODO: Change string sSubject = “This is…

1

HOWTO: VB/CDO 1.21 – Cancel a Recurring Meeting using a single Recurrance

‘ This code finds an meeting occurance and uses it to cancel the entire meeting series and’ have “Cancelled:” in front of the subject lines on the update messages sent to the recipient(s).’ To use:’  Create a recurring meeting inside the date/time range below with the subject “testabc”.’  Invite an attendee.’  Change the time of…

2

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 is info to help.  You will probably…

0

Setting MeetingStatus to CdoNonMeeting using CDO will cause the AllDay flag to not be set on an occurance in Outlook.

If you use CDO 1.21 to set the MeetingStatus to CdoNonMeeting for a single occurance of an all day recurring appointment, you will find that the AllDay flag is not set when the appointment is converted to a meeting and accepted by the attendee.  Private Sub cmdMakeInstanceAllDay_Click()    Dim objSession As mapi.Session    Dim ObjMessage As mapi.Message   …

0