Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: How to know when HTML or TEXT body? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
softwareguy
Newbie
Newbie


Joined: 17 July 2010
Location: United States
Online Status: Offline
Posts: 22
Posted: 22 July 2010 at 8:11pm | IP Logged Quote softwareguy

I was using MailMessage.BodyHtmlText and noticed some emails weren't showing anything. For these, I noticed that BodyPlainText did show something. Is there anyway to quickly know when a message is HTML or Plain Text?
Back to Top View softwareguy's Profile Search for other posts by softwareguy
 
softwareguy
Newbie
Newbie


Joined: 17 July 2010
Location: United States
Online Status: Offline
Posts: 22
Posted: 22 July 2010 at 8:14pm | IP Logged Quote softwareguy

Also, I noticed in Outlook, it somehow knows the format of the message, such as HTML or PlainText. So it seems like there should be away via MailBee to determine this.
Back to Top View softwareguy's Profile Search for other posts by softwareguy
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6095
Posted: 23 July 2010 at 1:52am | IP Logged Quote Igor

Quote:
Is there anyway to quickly know when a message is HTML or Plain Text?


Actually, checking if BodyHtmlText and BodyPlainText properties return non-empty value is a way to do that. Please note that mails can have both the parts available. You can also have plaintext part created from HTML part automatically if you like.

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

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 23 July 2010 at 2:53am | IP Logged Quote Alex

MailMessage.IsBodyAvail is another and more flexible way.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

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