- yum install mail
- vim /etc/mail.rc //设置发件人
set [email protected] smtp=smtp.126.com [email protected] smtp-auth-password=xxxxxx smtp-auth=login
- echo "内容" | mail -s "主题" [email protected] 使用该命令来发送邮件
时间: 2024-10-24 16:31:45
set [email protected] smtp=smtp.126.com [email protected] smtp-auth-password=xxxxxx smtp-auth=login