Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4033424
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:50:42+00:00 2026-05-20T11:50:42+00:00

I created a new email-message using Redemption-Data-Objects in C#. After calling Display(), the window

  • 0

I created a new email-message using Redemption-Data-Objects in C#. After calling Display(), the window is opened – all looks great.

When I try to send the message, by clicking the “send”-button, I get one of the following messages (translated from german…): “The messaging-interface returned an unknown error. try to restart outlook if the problem….” or “The element cannot be sent!”

When I use the Send-Method, all works fine, the email will be sent.

I tried OutlookSpy to find a solution – when i try to send the message i get return code 0x80020009.

Here is the sample-code:

Redemption.RDOSession session = new Redemption.RDOSession();
session.Logon(null, null, false, null, null, null);
Redemption.RDOFolder folder = session.GetDefaultFolder(Redemption.rdoDefaultFolders.olFolderOutbox);
Redemption.RDOMail newMail = folder.Items.Add(Redemption.rdoItemType.olMailItem);

// no difference when using .Add
newMail.Recipients.AddEx("a.b@blabla.com","a.b@blabla.com", "SMTP", Redemption.rdoMailRecipientType.olTo);
newMail.Recipients.ResolveAll();
newMail.Subject = "Testmail-Subject";
newMail.HTMLBody = "Test";
newMail.Display(false, Type.Missing);

Does anybody know a solution for that problem?

regards Martin

PS: I am using office 2010 (german) an Visual Studio 2010 (english) with target framework 2.0 in my project) on Windows 7 (english).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:50:42+00:00Added an answer on May 20, 2026 at 11:50 am

    OK…

    I found the “error”.

    Because my session ran out of scope, the context was lost and so the error occurred.

    Here is the solution:

    // Event object to wait for
    System.Threading.ManualResetEvent _manualEvent = new ManualResetEvent(false);
    
    private void DisplayMail() {
        ...
        // register an eventhandler for the close event
        _newMail.OnClose += new Redemption.IRDOMailEvents_OnCloseEventHandler(_newMail_OnClose);
    
        _newMail.Recipients.Add(txtTo);
        _newMail.Recipients.ResolveAll();
        _newMail.Subject = subject;
        _newMail.HTMLBody = body;
    
        _newMail.Display(false, null);
        // wait here until the message-window is closed...
        _manualEvent.WaitOne();
    }
    
    private void _newMail_OnClose()
    {
        _manualEvent.Set();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a new email box for general support questions. When I try to
I created a new SharePoint portal for testing purposes using a manually added HOSTS
I've just created a new Windows XP VM on my Mac using VMware Fusion.
I've created a new C++ project in Visual Studio 2008. No code has been
We have created a new List View Style that shows thumbnails from a picture
I have created a new solution with a minimal amount of code that represents
I m new to use ankhSVN and having issues. I have created some new
This is happening on Vista. I created a new dialog based MFC project to
I am new to Windows Mobile and created an app that needs to do
Does a new SessionFactor y and Session object have to be created for each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.