I installed sendmail and it worked great out of the box, with no configuration necessary
The only problem I had was my mail being marked as spam by fastmail
handy sendmail commands #
send an email - use -v
to show you how the message is being set
echo "choclate chip pancakes yum" | sendmail -v aaronkelly@fastmail.com
view all mail that's in the queue, waiting to be sent:
sendmail -bq
send all the mail in the queue now:
sendmail -v -q
sending email from cronjobs #
after testing that you can send mail from the commandline, all you need to do is put this line at the top of your crontab to send an email when the job runs. NOTE: if your command doesn't write anything to stdout, the email will be empty:
MAILTO=aaronkelly@fastmail.com