shell mail命令发送email

linux shell 發送email的命令
body:"This is test mail"
title/subject:'Test mail'

-f [email protected] 发件人地址
-F qq 发件人姓名
-t:收件人地址 空格分開可發多個

收件人:[email protected] [email protected]
echo "This is test mail" | mail -s 'Test mail' [email protected] [email protected]

echo "This is test mail" | mail -s 'Test mail' -t [email protected] -- -f davidhuang -F [email protected]
參考資料:
http://stackoverflow.com/questions/4658283/shell-script-to-send-email
http://blog.csdn.net/god_7z1/article/details/6759211

猜你喜欢

转载自lhdst-163-com.iteye.com/blog/2209188
今日推荐