How to set the From email address for mailx command?

前端 未结 8 784
鱼传尺愫
鱼传尺愫 2020-12-24 05:28

I am working on a KornShell (ksh) script running on a Solaris server that will send out an email when and error condition is met. I am sending the email via mailx

8条回答
  •  余生分开走
    2020-12-24 06:14

    The "-r" option is invalid on my systems. I had to use a different syntax for the "From" field.

    -a "From: Foo Bar "
    

提交回复
热议问题