On macOS, install msmtp: brew install mutt msmtp I read this thread: https://www.engadget.com/2010/05/04/msmtp-a-free-tool-to-send-email-from-terminal/ In order to use msmtp from command-line ‘mail’ add to ~/.mailrc: set sendmail=/usr/local/bin/msmtp In Keychain Access.app, go to File > New Password Item (Cmd+N) and fill it with smtp://smtp.gmail.com email@gmail.com mypassword In Keychain Access.app, select System Roots, select all certificates and File > Export Items (Shift+Cmd+E) > Priv...