且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将图像嵌入 Outlook HTML 电子邮件?

更新时间:2023-09-20 08:54:52

如果流程中的手动步骤是一个选项,您可以这样做:

If a manual step in the process is an option, you can do it like this:

  1. 自动或手动创建 HTML 作为保存的 HTML 文件,使用 标签链接到本地保存的图像文件
  2. 在选择 HTML 文件作为附件时,使用隐藏在插入"按钮上的向下箭头下方的作为文本插入"选项将 HTML 附加到 Outlook 电子邮件中.
  1. create the HTML automatically or manually as a saved HTML file, with <img> tags that link to locally-saved image files
  2. attach the HTML to an Outlook email using the 'Insert as text' option tucked away under the down-arrow on the "Insert" button when selecting the HTML file as an attachment.

这会使用文件中的 HTML 填充 HTML 电子邮件并嵌入所有图像.我相信这个工具使用 Base64 编码来嵌入图像,如 Sam 的电子邮件中所述.

This populates the HTML email with the HTML from the file and embeds all images. I believe this tool uses Base64 encoding to embed the images as described in Sam's email.

根据工作流程,此方法可能比自己将图像转换为 Base64 更容易.

Depending on the workflow, this method might be easier than converting images to Base64 yourself.

请注意,此方法仅适用于 Windows 版 Outlook,不是 Mac 版 Outlook.