Working Ninja
2018-11-27T07:37:07
Email File/stdout with Sendmail

Email contents of a file:

echo -e "Subject: subject\n\n" | cat - /file | sendmail address

Email stdout:

output=`cmd` 
echo -e "Subject: subject\n\n$output" | sendmail address