SolidDB is free & open source
This script reads standard input and will send out e-mail to specified recipients. It is exceedingly good for piping commands to, particularly within cron or at.
Change the first line to your location of perl, and change the location of the sendmail binary if it’s not /usr/lib/sendmail.
mailif -H to see all the options. I have no idea who originally wrote this script. The only reference I can find on the web is:
The script can be copied and pasted from there.