我必须发送一封带有shell脚本附件的邮件.我正在尝试使用mutt来执行此操作,如下所示:如何使用Linux命令行将文件作为电子邮件附件发送?
命令: echo "This is the message body" | mutt -a "/path/to/file.to.attach" -s "subject of message" -- recipient@domain.com
echo "This is the message body" | mutt -a "/path/to/file.to.attach" -s "subject of message" -- recipient@domain.com
错误:
发送消息时出错,子项退出127(执行错误.).无法发送消息.
unix email mutt
email ×1
mutt ×1
unix ×1