msmtp

SMTP client for sending emails from terminal or scripts

brewmacoslinux
Try with needOr install directly
Source

About

SMTP client that can be used as an SMTP plugin for Mutt

Commands

msmtp

Examples

send email with subject and body from command line$ msmtp -a gmail user@example.com <<< "Email body text"
send email with attachment using file input$ msmtp -a gmail user@example.com < email.txt
configure msmtp with multiple email accounts$ nano ~/.msmtprc
use msmtp as sendmail replacement for mutt email client$ set sendmail = "/usr/local/bin/msmtp -a gmail"
test email configuration and connection$ msmtp --account=gmail --serverinfo