http://blog.csdn.net/lichangzai/article/details/50502932
html
首先介紹一下mutt這個軟件,它是一款基於文字界面的郵件客戶端,很是小巧,但功能強大,能夠用它來讀寫,回覆保存和刪除你的郵件,能在Linux命令行模式下收發郵件附件。linux
更多的用法請查閱官網:http://www.mutt.orgide
可參考 http://itech.blog.51cto.com/192113/1768002
測試
yum -y install sendmail #須要安裝sendmail並開啓防火牆的25端口,若是你須要收郵件110端口也要開 yum -y install mutt
在安裝完成以後,若是/root目錄下並無 .muttrc 這個隱藏文件,能夠從其它地方複製過來,或者本身新建一個文件。spa
能夠經過find命令找到Muttrc這個文件,命令以下 find / -name Muttrc ,而後經過命令 cp /etc/Muttrc /root/.muttrc 複製到 /root 下後改名爲 .muttrc,而後你就能夠編輯配置文件了。.net
#若是你收到的郵件亂碼,設置如下信息 set charset="utf-8" set rfc2047_parameters=yes #若是你想自定義發件人信息,須要進行以下設置 set envelope_from=yes set use_from=yes set from=root@itdhz.com set realname="licz"
安裝完mutt後,在/usr/share/doc/mutt* 下有一份很好的手冊,能夠看一下。命令行
/usr/local/mutt/bin/mutt -s "數據測試" -e 'set content_type="text/html"' 123456@qq.com < /home/hello/test.html