默认默认环境已安装mutt1.4.1
msmpt1.4.3 从[url]http://rpm.pbone.net/index.php3/stat/4/idpl/2816543/com/msmtp-1.4.3-2.i586.rpm.html[/url]下载
系统全局设置/etc/Muttrc,如果使用某个系统用户,可以在~/.muttrc中设置。
set realname="your_email"
set use_from=yes
set editor="vim"
host smtp.domain.com
from your_email_address
tls on
auth on
user [email]user_name@domain.com[/email]
password your_password
chmod 600 .msmtprc
echo "test" |mutt -s "my_first_test" [email]somebodyone@yahoo.com[/email] -c [email]somebodytwo@yahoo.com[/email]
-c "carbon-copy"
观察.msmtp.log文件,如果有错会在日志文件中被报告出来,当然,成功发送的日志也会出现在此日志文件内。
content="you can tell your colleague what something to do at tomorrow"