linux使用stmp发送邮件
# yum | apt install mailx
# vim /etc/mail.rc (centos)
# vim /etc/s-nail.rc (ubuntu)
set from=123456@qq.com
set smtp=smtp.qq.com
set smtp-auth-user=123456
set smtp-auth-password=sbsbsbsb
set smtp-auth=login
# echo hello world |mailx -v -s "title-test" 123456@qq.com

浙公网安备 33010602011771号