The "Noob Link" Technical Reference
Pantz.org Index About Homepage


 __  __ ___ ____   ____
|  \/  |_ _/ ___| / ___|
| |\/| || |\___ \| |
| |  | || | ___) | |___
|_|  |_|___|____/ \____|

 

This is how to send mail on a SMTP server using telnet. All commands are in bold.

root@Linux:/> telnet mailhub.somedomain.com 25
Trying A.B.C.D...
Connected to mailhub.somedomain.com.
Escape character is '^]'.
220 mailhub.somedomain.com ESMTP Exim 4.04 Wed, 13 Nov 2002 16:27:42 -0700
helo someotherdomain.com
250 mailhub.somedomain.com Hello someotherdomain.com [E.F.G.H]
mail from: Jim@someotherdomain.com
250 OK
rcpt to: Joe@somedomain.com
250 Accepted
data

354 Enter message, ending with "." on a line by itself
Subject:Test Message
This is a test message.
.
250 OK id=18C6vd-0005Ey-00
quit
221 mailhub.somedomain.com closing connection
Connection closed by foreign host
root@Linux:/>