help with Redemption Library

csharp Russia
  • 14 years ago

    Hello All.
    I send the letter by means of CDO and Redemption Library. It's impossible to use Outlook COM Library for me.. (restriction in a technical project)
    What i do:

    MAPI.Session oSession = new MAPI.Session();
    oSession.Logon(Missing.Value, Missing.Value, true, true, Missing.Value, Missing.Value, Missing.Value);

    MAPI.Folder oFolder = (MAPI.Folder)oSession.Outbox;
    MAPI.Messages oMessages = (MAPI.Messages)oFolder.Messages;
    MAPI.Message oMsg = (MAPI.Message)oMessages.Add(Missing.Value, Missing.Value, Missing.Value, Missing.Value);

    // Redemptoin
    SafeMailItem SafeItem = new SafeMailItemClass();

    oMsg.Subject = "Hello!";
    oMsg.Text = "Hello!";

    SafeItem.Item = oMsg;


    MAPIUtils ut = new MAPIUtilsClass();
    ut.DeliverNow((int)rdoFlagIcon.olRedFlagIcon, (int)this.Handle);



    Letters remain in a folder Proceeding...
    And how to make that they have automatically gone and have got in folder Sent?
    I can not understand in what a problem. Please Help me.
    !!! - this code don't help...

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” - Antoine de Saint Exupéry