操作系统: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
#如果你收到的邮件乱码,设置以下信息
set charset="utf-8"
set rfc2047_parameters=yes
#如果你想自定义发件人信息,需要进行如下设置
set envelope_from=yes
set use_from=yes
set from=root@itdhz.com
set realname="licz"
cat /root/install.log | mutt -s "test' name@126.com
转载于:https://blog.51cto.com/wangxiaoyong/1896072