Hi,
What’s the best route to check if MapiMessage has RTF body part?
-
If MapiMessage.BodyType = BodyContentType.Rtf Then…
-
If MyMapiMessage.BodyRtf.Length > 0 Then…
-
etc…?
Hi,
What’s the best route to check if MapiMessage has RTF body part?
If MapiMessage.BodyType = BodyContentType.Rtf Then…
If MyMapiMessage.BodyRtf.Length > 0 Then…
etc…?
You can use following code example to detect the email body type as RTF. Hope this helps you.
MapiMessage mapiMsg = MapiMessage.Load(MyDir + "input.msg");
Console.WriteLine(mapiMsg.BodyType == BodyContentType.Rtf);