Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: E-mail type? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
networkats
Newbie
Newbie


Joined: 25 September 2006
Online Status: Offline
Posts: 2
Posted: 29 September 2006 at 3:37pm | IP Logged Quote networkats

Using MailBee.NET IMAP, how do you determine if an e-mail message is plaintext or HTML?
Back to Top View networkats's Profile Search for other posts by networkats
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 30 September 2006 at 6:36am | IP Logged Quote Alex

Email messages are not necessarily simply plain-text or HTML (although they could be). Many email messages are plain-text and HTML at the same time (they have both parts included). Thus, MailBee.NET allows the developer to examine both plain-text and HTML bodies of messages.

If MailMessage.BodyPlainText property returns empty string, there is nothing in plain-text body.

If MailMessage.BodyHtmlText property returns empty string, there is nothing in HTML body.

BTW, the developer can tell MailBee.NET to build HTML (or plain-text) body if it's missing from the message. This plain-text to HTML (and vice-versa) conversion is contolled via MailMessage.Parser property settings.

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