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
You can use the "-r" option to set the sender address:
mailx -r me@example.com -s ...