參考蠻多的。。
http://storysky.blog.51cto.com/628458/293005
http://www.wilf.cn/post/centos-mutt-msmtp-setup.html
http://www.centoscn.com/image-text/config/2013/0817/1286.html
我都省事的YUM安裝,,相關檔案内容如下:
/etc/msmtprc
/etc/Muttrc.local
測試:
echo "testmail" | mutt -s "測試" [email protected]
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIn5GcuAjM4UTN1ITNxUjMmZGOmZWN1MjN3MTOmVTY0ETYjFGMfdWbp9CXt92Yu4GZjlGbh5SZslmZxl3Lc9CX6MHc0RHaiojIsJye.png)