Gets or sets the string containing the tag to be used for highlighting quotations in the message.
A string containing the quoting tag (like <...>). The default value is an empty string.
Usually this property is used in plain-text reply messages. If it's set to non-empty string, then the following activities are also performed during converting plain-text into HTML:
Note MessageParserConfig object cannot be used on its own. To access its members, the developer should use MailMessage.Parser property.
This sample loads the message from .EML file, sets the quoting tag and tells MailBee to generate HTML version of the plain-text body even if the HTML body is available (this is required since we're not interested in HTML body in this sample), and displays the generated HTML body with quotations high-lighted.
[C#] // To use the code below, import MailBee namespaces at the top of your code. using MailBee; using MailBee.Mime; // The actual code (put it into a method of your class). MailMessage msg = new MailMessage(); msg.LoadMessage(@"C:\Docs\TestMail.eml"); msg.Parser.PlainToHtmlMode = PlainToHtmlAutoConvert.IfPlain; msg.Parser.PlainToHtmlOptions = PlainToHtmlConvertOptions.UriToLink; msg.Parser.PlainToHtmlQuotationTag = "<font color=red>"; Console.WriteLine(msg.BodyHtmlText);
[Visual Basic] ' To use the code below, import MailBee namespaces at the top of your code. Imports MailBee Imports MailBee.Mime ' The actual code (put it into a method of your class). Dim msg As New MailMessage msg.LoadMessage("C:\Docs\TestMail.eml") msg.Parser.PlainToHtmlMode = PlainToHtmlAutoConvert.IfPlain msg.Parser.PlainToHtmlOptions = PlainToHtmlConvertOptions.UriToLink msg.Parser.PlainToHtmlQuotationTag = "<font color=red>" Console.WriteLine(msg.BodyHtmlText)
MessageParserConfig Class | MailBee.Mime Namespace | PlainToHtmlMode