My understanding is that:
- sSMTP has to be installed and configured
- MAILTO= has to be added on top of crontab
I have setup also installed the following instructions: https://wiki.archlinux.org/index.php/SSMTP
I've read other tutorials however they were from around 2009 and outdated.
Upon testing it as per the instructions I was not able to get it to work.
> echo test | mail -s "testing ssmtp setup" <email_address>
mail: cannot send message: Process exited with a non-zero status
The email address I am trying to send emails from is a @gmail.com address.