- 使用環境
- OS版本:CentOS 5.4
- Sendmail版本:8.13.8-2
由於工作需要的關係,需要將Server上的資訊用mail指令寄到相關管理者信箱,特別做個筆記~
mail -s "This is a test" aa@aa.com < test.sh -- -f bbb@bb.com
※ -s "This is a test" :指定主旨
※ aa@aa.com :收件者mail
※ < test.sh :將test.sh執行的內容當作Mail的內文
※ -- -f bbb@bb.com :指定寄件者Mail
全站熱搜
留言列表