发送HTML文档(包含图片)作为电子邮件附件C# [英] Send Html document(contianing Images) as an email attachment C#

查看:99
本文介绍了发送HTML文档(包含图片)作为电子邮件附件C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

图像位于html文档中,并将该html作为附件发送.当html附件打开时,图像将显示在html页面中.

Image is inside html document and send that html as an attachment.when html attachement open ,image will display in html page.

推荐答案

您需要发送多部分发送电子邮件.例如,请参见 Wikipedia [这篇说明标准的文章 [^ ].

要嵌入图片,您需要指定Content-ID并使用cid:url或Content-Location,例如请参见此处 [
You need to send your email as multipart. See for example Wikipedia[^] or this article explaining the standard[^].

To embed an image you need to specify either Content-ID and use a cid: url, or Content-Location, e.g. see here[^].


您需要使用多部分e -mail和 URI方案"cid:".有关更多详细信息,请参阅我最近的回答:
发送带有图片的HTML附件 [
You need to use multipart e-mail and URI scheme "cid:". For further detail, please see my recent answer:
Sending HTML attachment with images[^].

—SA


这篇关于发送HTML文档(包含图片)作为电子邮件附件C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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