Author |
|
networkats Newbie
Joined: 25 September 2006
Online Status: Offline Posts: 2
|
Posted: 29 September 2006 at 3:37pm | IP Logged
|
|
|
Using MailBee.NET IMAP, how do you determine if an e-mail message is plaintext or HTML?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 30 September 2006 at 6:36am | IP Logged
|
|
|
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 |
|
|