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 127.0.0.1 25

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is '^]'.

220 domain ESMTP

helo dude

250 domain

mail my_name@domain

250 ok

rcpt my_name@domain

250 ok

data

354 go ahead

Subject: testing

This is a test.
.

250 ok 812345679 qp 12345

quit

221 domain

Connection closed by foreign host.

%

No comments: