HtmlToRtfConversionHandler Delegate
Defines the signature of a method supplied by the application in order to get RTF text from HTML body when making EML-to-MSG conversion.

Namespace: MailBee.Outlook
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public delegate string HtmlToRtfConversionHandler(
	MailMessage sourceMsg,
	string sourceHtml
)

Parameters

sourceMsg
Type: MailBee.MimeMailMessage
The MailMessage object for which the converter is executed.
sourceHtml
Type: SystemString
The HTML text for conversion.

Return Value

Type: String
A string with RTF text.
Remarks

If you decided to use custom HTML-to-RTF conversion in your application (see HtmlToRtfConversionMethod topic for details), then your application must implement a method with HtmlToRtfConversionHandler signature which deals with sourceHtml string, converts its contents into RTF and returns it to MailBee. You can also use sourceMsg object if you need other information from the source .EML message. You can also modify that message (for instance, if your process of HTML-to-RTF conversion also implies changing the message like adding or removing attachments or whatever). All your changes will take effect on the resulting .MSG message.

To let MailBee know which HtmlToRtfConversionHandler delegate to execute, use OnHtmlToRtfConversion property.

Note Note
Using custom HTML-to-RTF conversion is an advanced topic which assumes you have a tool (such as third-party component) which can perform such a conversion with a very high quality (because MailBee already provides basic-level HTML-to-RTF conversion). Also, it assumes you actually need RTF body in .MSG message and HTML body is not enough for your case. Most Outlook versions can open .MSG with HTML (and no RTF) just fine.
See Also