`
flex_莫冲
  • 浏览: 1074793 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

shell mail命令发送email

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

-f admin@qq.com 发件人地址
-F qq 发件人姓名
-t:收件人地址 空格分開可發多個

收件人:to@example.com to2@163.com
echo "This is test mail" | mail -s 'Test mail' to@example.com to2@163.com

echo "This is test mail" | mail -s 'Test mail' -t to@example.com -- -f davidhuang -F davidhuang@example.com
參考資料:
http://stackoverflow.com/questions/4658283/shell-script-to-send-email
http://blog.csdn.net/god_7z1/article/details/6759211
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics