sendemail

Lightweight SMTP client for sending emails from the command line

brewmacoslinux
Try with needOr install directly
Source

About

Email program for sending SMTP mail

Commands

sendEmail

Examples

Send a simple email with subject and body$ sendEmail -f sender@example.com -t recipient@example.com -s smtp.gmail.com:587 -u 'Subject' -m 'Email body' -xu sender@example.com -xp password -o tls=yes
Send email with attachment$ sendEmail -f sender@example.com -t recipient@example.com -s smtp.example.com -u 'Subject' -m 'Body' -a /path/to/file.pdf -xu user -xp pass
Send email to multiple recipients$ sendEmail -f sender@example.com -t user1@example.com -t user2@example.com -s smtp.example.com -u 'Subject' -m 'Body' -xu user -xp pass