我想通过电子邮件发送一个HTML文件和一些图片给一个脚本的人。 标准答案似乎是使用mutt 。 不过我目前没有安装。
mail , mailx及其衍生品是这类工作最常用的MUA。
你会发现他们比mutt更精简的安装和维护。
重要的是要注意,一些衍生产品不会像其他产品那样容易发送附件。
使用mailx发送附件:
(uuencode file1.png file1.png uuencode file2.html file2.html echo "this is in the message body") | mailx -s "This is the Subject" [email protected]
uuencode包含在sharutils包中。