Linux command line sending mail via SMTP

Test your destination SMTP server

telnet smtp.mailendo.com 25

Install swaks command line tool

apt-get install swaks

Play with it ~~

echo "This is the message body" | swaks --to xxx@gmail.com --from "f0@c0x0.com" --server smtp.mailendo.com --auth LOGIN --auth-user "oxxs@gmail.com" --auth-password "asdfasdf”

Enjoy ?