How to convert a RTF Mail with Image in Signature to HTML Mail?
-
vendredi 17 août 2012 07:26
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
Toutes les réponses
-
vendredi 17 août 2012 16:21
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!
-
lundi 20 août 2012 12:34
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
-
mardi 21 août 2012 06:35
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!
- Marqué comme réponse Quist ZhangMicrosoft Contingent Staff, Moderator lundi 27 août 2012 06:44

