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
mailx
The package nail provides an enhanced mailx like interface. It includes the -r option.
nail
-r
On Centos 5 installing the package mailx gives you a program called mail, which doesn't support the mailx options.
mail