Use telnet to test send mail

How to send mail using telnet

Commands below is to demonstrate how to use telnet to log into a server and send mail out.

If you are using Linux, in your terminal type commands below. If you are using MS Windows, type them in command prompt.

% telnet 25


Connected to

Escape character is '^]'.

220 domain ESMTP

helo dude

250 domain

mail my_name@domain

250 ok

rcpt my_name@domain

250 ok


354 go ahead

Subject: testing

This is a test.

250 ok 812345679 qp 12345


221 domain

Connection closed by foreign host.


No comments: