none
How to convert a RTF Mail with Image in Signature to HTML Mail?

    Question

  • Hello everybody,

    i've got a RTF mail with a signature which contains an image. To convert this mail to HTML I try the following:

    mail.BodyFormat = Microsoft.Office.Interop.Outlook.OlBodyFormat.olFormatHTML;
    mail.Save();

    The problem is that the image from the signature is added as an OLE attachment.

    What can i do that the signature will retain the same as in the RTF mail?

    Greets Werner

    Friday, August 17, 2012 7:26 AM

Answers

All replies

  • Embedded imagesi n RTF messages *are* OLE attachments.

    Have you tried saving the message as an MHTML file?

    Is this a new message? If yes, set the body format immediately after creating the message, then touch its inspector or display it (which will cause the signature to be added).


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Friday, August 17, 2012 4:21 PM
  • Hello Mr. Streblechenko,

    no, this is not a new mail, it is an existing one. After changing the body format the

    graphic is not longer within the mail but as an attachment. Please have a look at the image:

    Greets Werner

    Monday, August 20, 2012 12:34 PM
  • HTML messages store images as attachments, they are never truly embedded into the HTML body; the body simply refers to the images by the attachment content-id.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Tuesday, August 21, 2012 6:35 AM