Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: Need message bodies Plain and HTML Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
erix
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 25 May 2006 at 2:22pm | IP Logged Quote erix

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 View erix's Profile Search for other posts by erix
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 May 2006 at 7:22am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
eric
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 30 May 2006 at 2:22pm | IP Logged Quote eric

I found the problem. Thanks for the reply.
Back to Top View eric's Profile Search for other posts by eric
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide