Centos 发送smtp邮件

说明:服务器

         1.本文是用网易smtp服务,QQ的没试过post

       2.在Centos7上测试测试

实现:spa

       1.关闭本机的sendmail服务或者postfix服务3d

       

sendmail
# service sendmail stop
# chkconfig sendmail off

postfix
# service postfix stop
# chkconfig postfix off

 



2.修改/etc/mail.rc,增长一下相似N行,指定外部的smtp服务器地址、账号密码等,前提网易SMTP服务要开启




3.而后经过命令来发送邮件


4.邮箱接收效果
相关文章
相关标签/搜索