使用 C# 发送正文中嵌入图像的电子邮件

发布于 2024-08-14 16:08:48 字数 307 浏览 2 评论 0原文

我的问题是如何以编程方式将带有附件的电子邮件发送到默认邮件客户端。

我的要求是:

  1. 设置目的地、抄送、密件抄送
  2. 链接到附件
  3. 添加图像(如邮件正文中的横幅

)我成功地以各种方式撰写电子邮件,但添加附件却没有 但添加嵌入图像的问题是。

我已将邮件正文编写为 HTML,并集成了 Base64 编码的图像,但 Outlook 和 Outlook Express 无法识别该图像。为什么?

有没有人能解决我的问题。

我解决了调用 MAPI 的部分问题。

My problem is how to send an email with attachemnts to the default mail client programmatically.

My requirements are:

  1. setting destination, CC, BCC
  2. link to attachment(s)
  3. adding and image like a banner in the message body

I succeded to compose an email in the various ways and adding attachments are not
the problem but adding an embedded image is.

I had composed the message body as HTML and had integrated the image Base64 encoded but Outlook and Outlook Express does not recognized the image. Why?

Does anybody have a solution to my problems.

I solved a part of my problems calling MAPI.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文