Send mail via telnet


$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 image.localhost ESMTP OpenSMTPD
ehlo rgz.ee
250-image.localhost Hello rgz.ee [127.0.0.1], pleased to meet you
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-SIZE 36700160
250-DSN
250 HELP
mail from:
250 2.0.0: Ok
rcpt to:
250 2.1.5 Destination address valid: Recipient ok
data
354 Enter mail, end with "." on a line by itself
to: Roman Zolotarev 
from: Roman Zolotarev 
subject: Hello

World!
.
250 2.0.0: fa2b1400 Message accepted for delivery
quit
221 2.0.0: Bye
Connection closed by foreign host.
$