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
On Ubuntu Bionic 18.04, this works as desired:
$ echo -e "testing email via yourisp.com from command line\n\nsent on: $(date)" | mailx --append='FROM:Foghorn Leghorn ' -s "test cli email $(date)" -- recipient@acme.com