查看更多教程 https://on itroad.com
发送带附件的邮件
可以使用 mutt 工具发送带有大邮件正文和附件的邮件。
- 使用以下格式的 mutt 命令指定主题、邮件正文和附件以从命令行发送邮件。
# echo "" | mutt -s "subject" -i body.txt -a attachment.txt recipient@example.com
-s used to specify subject of mail. -i used to specify file containing message body. -a used to specify attachment file.
mutt 的其他一些常用选项是:
-b used to add Bcc address. -c used to add Cc address. -e if you want to specify sender's address (something other than default).
Mutt 是一个基于文本的邮件客户端。
Mutt 以快速且高度可配置的邮件客户端而闻名,并且由于它是基于文本的,因此非常适合通过 SSH 快速检查电子邮件。
安装mutt
使用 yum 安装 mutt:
# yum install mutt
日期:2020-09-17 00:13:51 来源:oir作者:oir