HtmlToRtfConversionHandler Delegate |
Namespace: MailBee.Outlook
public delegate string HtmlToRtfConversionHandler( MailMessage sourceMsg, string sourceHtml )
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 |
---|
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. |