Hi Everyone, I am a long time reader but this is my 1st post!
I made a small package to add email support using the bashmail script from unraid_notify package. Credits goes to brainbone for unraid_notify package.
It use the same config file as unraid_notify (/boot/config/unraid_notify.cfg). I made this to enable sending email from any scripts and/or crontab jobs without using unraid_notify.
You still have to install unraid_notify-2.20-noarch-unRAID.tgz package *BUT* you don't have to start it if you don't want to.
Syntax: mail [--subject 'subject'] [--rcpt '
[email protected]']"
Samples Usage:
cat filename.txt | mail
echo 'this is a test' | mail
echo 'this is a test' | mail --subject 'ATTENTION'
echo 'this is a test' | mail --subject 'ATTENTION' --rcpt
[email protected]
You can override the subject and the rcpt from the configuration file (unraid_notigy.cfg) with the optionals parameters.
Regards
Mike