I'm trying to send email alerts from Postgresql, and I've gotten as far as a TCL script that listens for notifies from the database. That much works. What I can't get is TCL or any command line utility to successfully send an e-mail. Either the TLS and/or SSL doesn't seem to be right and so the authentication doesn't work. I have TCL TLS installed, and it works for HTTPS so that much is OK. I was thinking a fallback would be to exec a CLI utility. I downloaded mailutils but apparently it needs configuration before it will connect to an smtp server? What command line email schemes has anybody used?