swaks

SMTP command-line test tool for sending test emails and debugging

brewmacoslinux
Try with needOr install directly
Source

About

SMTP command-line test tool

Commands

swaks

Examples

Send a test email to a recipient via localhost SMTP$ swaks --to user@example.com --from sender@example.com --server localhost
Send email with custom subject and body to specific SMTP server$ swaks --to user@example.com --from sender@example.com --server mail.example.com --h-Subject 'Test' --body 'Hello World'
Test SMTP authentication with credentials$ swaks --to user@example.com --from sender@example.com --server smtp.gmail.com:587 --auth LOGIN --auth-user username --auth-password password --tls