安装mailx
yum install mailx
配置
vim vim /etc/mail.rc (末尾加如下)
set from="1016523076@qq.com"
set smtp=smtp.qq.com
set smtp-auth-user=1016523076
set smtp-auth-password=nosuasdsaasdlmbfjd
set smpt-auth=login
这里注意set smtp-auth-password字段是在邮箱内获取
安装mailx
yum install mailx
配置
vim vim /etc/mail.rc (末尾加如下)
set from="1016523076@qq.com"
set smtp=smtp.qq.com
set smtp-auth-user=1016523076
set smtp-auth-password=nosuasdsaasdlmbfjd
set smpt-auth=login
这里注意set smtp-auth-password字段是在邮箱内获取