I am attempting to write a script which send emails containing log messages...
Firstly, I have installed ssmtp and configured /etc/ssmtp/ssmtp.conf
ssmtp
/etc/ssmtp/ssmtp.conf