0 votes

Hi in your earlier version of your control you had an html viewer. do you still have something like that because webbrowser control doesn;t accept css styles i need

by
retagged by

1 Answer

0 votes

You can use MailBrowserControl control. Add reference to all three assemblies: Mail.dll, MailBrowserControl.dll, ProtocolEx.dll.

MailBrowserControl is defined in Limilabs.Windows.

private void button1_Click(object sender, EventArgs e)
{
    IMail mail = new MailBuilder().CreateFromEmlFile(@"HTMLMail.eml");
    mailBrowser1.Navigate(new MailHtmlDataProvider(mail));
}

You can find details here:
https://www.limilabs.com/blog/display-html-email-in-windows-application

by (301k points)
Can I use the MailBrowserControl in a web project?
...