Office Interopt Outlook RTF E-Mail Body

lusiphur

Mitglied
Hallo Ng,

Icvh habe folgendes Problem wenn ich einer neuen OL nachricht eine
Richtexbox ans Messga Body zuweise bekomme ich bei dder Option Text nur den
Unformatierten text und bei RTF den RTF string in der nachricht nagzeigt was
mache ich Falsch?

Wie bekomme ich den RTF Code in den E-Mail Body

Danke im Voraus

Lusiphur
Als Lernbeispiel wurde
(http://www.keithelder.net/blog/arch...ok-Interop-or-System.Diagnostics.Process.aspx) zugrundegelgt

Common.Outlook.Email outlookEmail = new Common.Outlook.Email();

outlookEmail.Message.To = "me@foo.com";

outlookEmail.Message.CC = "me2@foo.com";

outlookEmail.Message.BodyFormat =
Microsoft.Office.Interop.Outlook.OlBodyFormat.olFormatHTML;

outlookEmail.Message.Importance =
Microsoft.Office.Interop.Outlook.OlImportance.olImportanceHigh;

outlookEmail.Message.Body = richTextBox1.Rtf;

outlookEmail.Show();
 
Zurück