Author |
|
erix Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 25 May 2006 at 2:22pm | IP Logged
|
|
|
I need to parse out the body - in plain text and in html.
I've tried using
string textBody = msg.BodyParts.Plain.Text.ToString();
string HTMLBody = msg.BodyHtmlText.ToString();
respctively.
Their is a plain text body and HTML body in the message I am trying to parse.
The code to retrieve textBody returns a blank.The code to retrieve HTMLBody returns \r\n when this HTML is sent in the message:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>XHTML 1.0 Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<p>
This is a tiny example of an <abbr title="Extensible HyperText Markup Language">XHTML</abbr>
1.0 Strict document.
</p>
</body>
</html>
Any ideas?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 26 May 2006 at 7:22am | IP Logged
|
|
|
Could you please receive the message which caused the issue using MS Outlook Express, save it to an .eml file (Menu File->Save As), and then send this .eml file to support@afterlogic.com? Thus, we would be able to reproduce and investigate the problem.
Regards,
Alex
|
Back to Top |
|
|
eric Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 30 May 2006 at 2:22pm | IP Logged
|
|
|
I found the problem. Thanks for the reply.
|
Back to Top |
|
|