【发布时间】:2016-04-15 05:59:22
【问题描述】:
我必须从 shell 脚本发送带有附件的邮件。 我正在尝试使用 mutt 来做到这一点,如下所示:How do I send a file as an email attachment using Linux command line?
命令:
echo "This is the message body" | mutt -a "/path/to/file.to.attach" -s "subject of message" -- recipient@domain.com
错误:
发送消息时出错,子进程退出 127(执行错误。)。
无法发送 消息。
【问题讨论】:
-
你安装了msmtp,还是其他用来发送邮件的东西?