在21世纪包含图像的正确方法是使用MIME.你的信息基本上应该是这样的
From: you
To: recipient
Subject: well, say something
Mime-Version: 1.0
Content-type: multipart/related; boundary=foo
Often you have something about this being a MIME message here.
--foo
Content-type: text/html; charset=utf-8
Content-transfer-encoding: us-ascii
--foo
Content-type: image/png
Content-id: bar
Content-transfer-encoding: base64
sdflkjsdflkjsdflkjsdflkjsdflksdfl=
--foo--
您还可以尝试使用文本/纯文本部分和Content-Disposition:内联图像;然后,许多客户将在文本下方显示图像.
当然,如果你已经将它全部放在一个HTML文件中(如何使用图像?),那么只需将它与像mutt一样的现代MUA附加,应该只需要一个简单的命令行.