CDO 1.2.1 - Send Method (Message Object) problem, doesn't take parameters

Posted on 2004-11-29
Last Modified: 2008-02-01
I've referenced the Microsoft CDO 1.2.1 Library (COM) using C# and Visual Studio .NET 2003.

This part compiles:

CDO.Message myMail = new CDO.Message();
myMail.Subject="Sending email with CDO";

But this bit doesn't:

myMail.Send(true, true, 0);

Unless I change it to:

myMail.Send(); // i.e. no parameters

The MSDN documentation says it can take 3 parameters:

The error is:

No overload for method 'Send' takes '3' arguments

What's going on?

Question by:tjrobinson
    LVL 9

    Expert Comment

    there's a class in the .net framework for this. its usage is below:

             System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
             msg.Subject = "Sending email with CDO";
             msg.From = "";
             msg.To = "";
             msg.Body = "This is a test";
             System.Web.Mail.SmtpMail.SmtpServer = "";
    LVL 6

    Accepted Solution

    I think its better to use MAPI33 or redemption to do the task. I also earlier used this one and then went to outlook redemption. It has good interface and easy access without any security prompt.

    Now if I try to answer your question,
    In the wrapper that you get from CDO (To  use in .NET) you don't get any Send method with parameters.


    Author Comment

    Thanks. The reason I specifically want to use parameters is that I want to popup the mail composition window of the default mail client, in most cases Outlook 2000, with the subject, message and attachment already added. This is so the user can choose the recipient.

    The System.Web.Mail class doesn't allow this and if Chester_M_Ragel is right, then it's not possible with CDO either.

    I'll give Outlook Redemption a try:

    Any maybe MAPI33 (doesn't look as professional though):

    Any further ideas?
    LVL 6

    Expert Comment

    MAPI33( may be a good one. But it was not that easy to use. Here are some sample on that( ). As I said it is very easy to if you go for redumption.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now