邮件正文中的嵌入图像不会显示在winforms中的webbrowser控件中 [英] Embedded image in mail body is not displayed in webbrowser control in winforms

查看:109
本文介绍了邮件正文中的嵌入图像不会显示在winforms中的webbrowser控件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将outlook邮件正文的内容放入winforms的webbrowser控件中。

如果我使用以下代码,则会显示所有内容,但不会显示页面中的图像。

我使用的是outlook 2013和VS2012。



任何帮助都非常感谢。



webBrowser1.DocumentText = mail.HTMLBody;



从下面的链接获得一些输入,但它是关于将邮件正文复制到新邮件,我想要将内容复制到webBrowser控件。



http://stackoverflow.com/questions/25229157/c-sharp-outlook-add-in-reply- forward-with-image-as-signiture / 33256651?noredirect = 1#comment54315624_33256651 [ ^ ]

I want to place the contents of a outlook mail body into a webbrowser control in winforms.
everything is displayed if i use following code,but images in the page is not displayed.
I am using outlook 2013 and VS2012.

Any help deeply appreciated.

webBrowser1.DocumentText = mail.HTMLBody;

Got some input from below link, but it is about copying mail body to new mail, I want to copy the content to a webBrowser control.

http://stackoverflow.com/questions/25229157/c-sharp-outlook-add-in-reply-forward-button-with-image-as-signiture/33256651?noredirect=1#comment54315624_33256651[^]

推荐答案

首先查看HTMLBody对象的内容:它可能不包含嵌入的图像 - 许多系统过滤掉图像链接,以便垃圾邮件发送者和网络钓鱼者无法告诉死的实时电子邮件地址。

如果您的系统正在执行此操作,则链接无法正确显示,因此无需显示任何内容。
Start by looking at the content of the HTMLBody object: it may be that it doesn't contain the embedded images - many systems filter out image links so that spammers and phishers can't tell "live" email addresses from "dead" ones.
If your system is doing that, then the links don't appear correctly, so there is nothing to show.


这篇关于邮件正文中的嵌入图像不会显示在winforms中的webbrowser控件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆