Author |
|
softwareguy Newbie
Joined: 17 July 2010 Location: United States
Online Status: Offline Posts: 22
|
Posted: 22 July 2010 at 8:11pm | IP Logged
|
|
|
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 |
|
|
softwareguy Newbie
Joined: 17 July 2010 Location: United States
Online Status: Offline Posts: 22
|
Posted: 22 July 2010 at 8:14pm | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 23 July 2010 at 1:52am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 23 July 2010 at 2:53am | IP Logged
|
|
|
MailMessage.IsBodyAvail is another and more flexible way.
Regards,
Alex
|
Back to Top |
|
|