I am looking for a way to email the output from various cronjob to specific addresses. The cronjob MAILTO command is too generic. I therefore pipe the output of a job into the mail command.
This works fine except that the output is html encoded and I need to add an Content-Type header to each message.
My version of mail doesn't support the -a flag, which would be perfect. Additionally it seems sendmail isn't available as this is running in a chrooted jail.