Author |
|
sarahmcjj Newbie
Joined: 09 July 2022 Location: United Kingdom
Online Status: Offline Posts: 9
|
Posted: 11 July 2022 at 9:35am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 12 July 2022 at 1:54am | IP Logged
|
|
|
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 |
|
|