shell mail命令发送email

刘涛 2015-05-07

linuxshell發送email的命令

body:"Thisistestmail"

title/subject:'Testmail'

-fadmin@qq.com发件人地址

-Fqq发件人姓名

-t:收件人地址空格分開可發多個

收件人:to@example.comto2@163.com

echo"Thisistestmail"|mail-s'Testmail'to@example.comto2@163.com

echo"Thisistestmail"|mail-s'Testmail'-tto@example.com---fdavidhuang-Fdavidhuang@example.com

參考資料:

http://stackoverflow.com/questions/4658283/shell-script-to-send-email

http://blog.csdn.net/god_7z1/article/details/6759211

相关推荐