Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: How to know the body type of the message Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jamyzhang
Newbie
Newbie


Joined: 30 March 2010
Online Status: Offline
Posts: 4
Posted: 20 May 2010 at 9:55pm | IP Logged Quote jamyzhang

HI,

I find the BodyHtmlText and BodyPlainText properties of the MailMessage, but how could I know the body type?

Is the body type plain text when the BodyHtmlText is null?
Back to Top View jamyzhang's Profile Search for other posts by jamyzhang
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6040
Posted: 20 May 2010 at 11:18pm | IP Logged Quote Igor

Technically, there's no such thing as body type for a random message as it can hold both plaintext and HTML parts. Still, the following suggestion

Quote:
Is the body type plain text when the BodyHtmlText is null?


is correct. Basically, if BodyHtmlText property returns empty string, this means there were no HTML part in a message; same about BodyPlainText and plaintext part.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

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