postfix 指令送信問題 - Linux

Table of Contents

※ 引述《chan15 (ChaN)》之銘言:
: 請教一下 mail 指令可不可以一行發信
: man 了一下 mail,格式像是
: mail -s "test" -r "[email protected]"
: 可是失敗了,不知道有沒有辦法呢?

-r 是指定寄件者, 你還少了收件者
另外要內文要 pipe 給他
echo body | mail -s test -r [email protected] [email protected]

--
http://pank.org

--

All Comments

Eden avatarEden2011-09-11
如果還是不行的話,要先檢查 mail server 是否有正常運作