Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Text to HTML Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sarahmcjj
Newbie
Newbie
Avatar

Joined: 09 July 2022
Location: United Kingdom
Online Status: Offline
Posts: 9
Posted: 11 July 2022 at 9:35am | IP Logged Quote sarahmcjj

Maybe useful for others, so posted here:

I just want to ask if these 2 tasks are possible with the component internally or not?

A message either has plain text part or not.
If has, need to convert it to simple HTML to show in browser.
If not, need to generate the simple HTML from HTML part to show in browser.
In both cases, I just need to get the generated part as string without modifying the current Message object (not adding to the message part).
ie when generating text part from html part I just need to get it as string and don't want it to be added to the message object.
Thank you
Back to Top View sarahmcjj's Profile Search for other posts by sarahmcjj
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 12 July 2022 at 1:54am | IP Logged Quote Alex

The only way is setting MailMessage.Parser.PlainToHtmlMode. This means you'll need to have a copy (make a clone, for instance) of the original message if you want to keep it intact, and perform MailMessage.Parser.PlainToHtmlMode manipulations over a copy).

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