mail 本文最后更新于:2023年12月5日 晚上 # 安装邮件服务 yum -y install mailx # 配置/etc/mail.rc set from=ljkk3014@foxmail.com set smtp=smtp.qq.com set smtp-auth-user=ljkk3014@foxmail.com set smtp-auth-password=jwopcmnpmawddbbg # 随便写的 # 发送邮件 [root@centos8 ~]# echo -e "Hello, I am `whoami`,The system version is here,please help me to check it ,thanks! \n`cat /etc/os-release`" | mail -s hello 441757636@qq.com 效果: 运维 > 基础 > shell脚本编程 #mail mail http://blog.lujinkai.cn/运维/基础/shell脚本编程/mail/ 作者 像方便面一样的男子 发布于 2020年12月9日 更新于 2023年12月5日 许可协议 expect 上一篇 信号 signal 下一篇