telnet smtpserver 25

HELO smtp.lalife.net
MAIL FROM: test@localhost
RCPT TO: test@lalife.net
DATA
FROM:test@localhost
Subject: test smtp
test smtp.
.
QUIT

Another way to send mail by command line
echo “testmail” | mail -s “test” yan@yan.lalife.net

Leave a Reply

Your email address will not be published.