@wengi and all
I have been able to get the mini_sendmail working - for all, like me, that did not know here are the commands -
printf 'Subject: The subject of the email \r\nThis is the body text of the email'Code:printf 'Subject: The subject of the email \r\nThis is the body text of the email' |mini_sendmail -t -ftest@test.com -ssmtp.mail.com -v email@test.com
This just creates the email, echo won't work because we need to use the "\r\n" to make a newline and return so that the Subject: and body text are separate.
-t (Im not sure why this is needed)
-f (the "from" email *note no space -f)
-s (your isps smtp server *note no space after -s)
-v (the recipient's email * note the space after -v)
Now what I would like to do is
Write a script that runs from cron that will send me an email when an event happens.
The event would be the completion of a torrent or a dropbear logon etc.
How would I do this - I am thinking that the script should check the syslog.log ever hour and extract the log messages that are of interest and send them on .....
Can someone (wengi) give me some help on how to get this done.
Thanks
Velcrow




) give me some help on how to get this done.
