Render Hyperlinks with custom style
Contents
[
Hide
]
There may be times when you need to output hyperlinks with some specific style based on the requirements of your application. For that, Aspose.Email provides HyperlinkRenderingCallback. You can pass the HyperlinkRenderingCallback as a parameter of MailMessage.GetHtmlBodyText.
The following code snippet shows you how to use HyperlinkRenderingCallback to output hyperlinks using your own custom style.
RenderHyperlinkWithHref and RenderHyperlinkWithoutHref methods are intended to demonstrate hyperlink rendering and are not intended for production use.