CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Posts
    1

    Problem with Outlook.OlBodyFormat.olFormatRichText

    hello!

    I have problem with setting RTF e-mail body format.
    In my app I have a richTextBox control, and I want to set email body content from this richTextBox.

    My source code looks like this:

    ...

    Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);

    oMsg.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
    oMsg.Body = richTextBoxEmailContent.Rtf;

    Outlook.MAPIFolder oOutBox = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderOutbox);

    oMsg.Move( oOutBox );

    ...

    But in Outlook outbox folder this email is saving with all RTF tags in content.
    Did Someone know what I have to do?

    Please help me.

  2. #2
    Join Date
    Nov 2006
    Posts
    22

    Re: Problem with Outlook.OlBodyFormat.olFormatRichText

    I have the same problem. Can you help me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured