msmtp

SMTP client for sending emails from the command line 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 a simple email via msmtp using a configured account$ echo 'Email body' | msmtp -a default recipient@example.com
Send an email with subject and multiple recipients$ echo 'Message content' | msmtp -a default -t < email.txt
Test msmtp configuration and SMTP connection$ msmtp --serverinfo -a default