shell mail命令发送email

linuxshell發送email的命令

body:"Thisistestmail"

title/subject:'Testmail'

[email protected]发件人地址

-Fqq发件人姓名

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

收件人:[email protected]@163.com

echo"Thisistestmail"|mail-s'Testmail'[email protected]@163.com

echo"Thisistestmail"|mail-s'Testmail'[email protected]@example.com

參考資料:

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

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

相关推荐