linux下命令行发送邮件的软件:mutt

不带邮件内容,只有subject:
mutt -s "Subject comes here" username@domain.com < /dev/null

只有文件附件:
mutt -s "Subject comes here" -a /path/to/file -- username@domain.com < /dev/null

文件附件及邮件内容:
mutt -s "Subject comes here" -a /path/to/file -- username@domain.com < "Mail contents"

posted @ 2021-12-17 15:16  微信公众号--共鸣圈  阅读(100)  评论(0编辑  收藏  举报