首页 > 系统服务 > 详细

linux发送邮件方法

时间:2017-02-08 16:17:14      阅读:182      评论:0      收藏:0      [点我收藏+]

操作系统:centos6.5

需要软件:postfix  默认安装有 如果没有 yum install postfix即可

                mutt   yum install mutt

安装后编辑

vi /etc/muttrc

defaults
account soomeng
host smtp.126.com
from name@126.com
auth login
port 25
tls off
user soomeng@126.com
password yourpasswd
account default : biaoti


cat /root/install.log | mutt -s "test‘ name@126.com


linux发送邮件方法

原文:http://wangxiaoyong.blog.51cto.com/2289427/1896072

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!