swaks --auth --auth-user me@example.com --auth-password 'secret' --to user@example.com --server smtp.example.com:587

Category: Mail Servers & Postfix

swaks --auth --auth-user me@example.com --auth-password 'secret' --to user@example.com --server smtp.example.com:587

Test SMTP authentication and delivery

Authenticates with LOGIN or the server's preferred mechanism and then sends the message, proving the credentials and the authenticated path both work. The password sits in your shell history, so scrub it or read it from a file afterwards.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.