在richtextbox中显示电子邮件

时间:2015-07-15 21:41:48

标签: c# winforms email retina-display lumisoft

我正在使用Lumisoft进行小型电子邮件项目。 一切都很好,直到现在。我管理了大部分我想要实现的事情。 但不是全部。 我可以阅读电子邮件的正文文本但是当我显示它们时它是纯文本的。 让我演示给你看。 当我在浏览器上登录我的电子邮件时,电子邮件显示如下: enter image description here

然而,当我读取bodytext并将其显示在richtextbox中时,它是正常的,就像这样:

New comment on your post "Spotify Ads Blocker - The best ad blocker for Spotify"
https://iblockify.wordpress.com...

Author : jc (removed , removed.dynamic.jazztel.es)
E-mail : removed@gmail.com
URL    : 
Whois  : http://whois.arin.net/removed
Comment: 
I have the same problem with another computer with OS Windows 7 x64 bit, without proxy configuration and with the .Net Framework version 4.5.1

Trash it: https://removed
Spam it: https://removed


You can reply to this comment via email as well, just click the reply button in your email client.

所以我的问题就在这里; 显示电子邮件和浏览器显示的最佳解决方案是什么? 我不认为我可以100%相似,但必须有一种方法让它看起来比现在更好......

我只是在这里提出一些想法,所以请带上它!

1 个答案:

答案 0 :(得分:0)

尝试使用WebBrowser控件,而不是使用RichTextBox控件。

wb = new WebBrowser();
wb.DocumentText = EmailContent;
form.Controls.Add(wb);