mail usage

mail -s “hi" < content.txt [email protected]

[email protected]的mail用法就是打mail,然後mail會提示輸入subject然後是信件內容,輸入完信件內容按Ctrl+D之後,就會把信件寄出了。但是今天想用Shell Script自動寄出信件,例如在使用者登入後,寄信給剛註冊的使用者,如此一來透過PHP去呼叫外部的shell script就可以自動寄出信件啦!

tzangms

Read more posts by this author.

Subscribe to Oceanic / 海海人生

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!