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

posted @ 2017-04-18 09:33  沄持的学习记录  阅读(191)  评论(0)    收藏  举报