Today to work bored, think of the last time a classmate mentioned using Telnet email, so want to try. Finally, the success of practice, to do a summary.
First, cmd input telnet opens the reply:
The following red font is the command.
1,open smtp.163.com, connect the SMTP service, successfully displayed:
163.com Anti-Spam GT for Coremail System (163com[20141201])
2,helo localhost, say hello, successful display:
OK
3,auth login, the use of password login mailbox, successfully displayed:
334 Dxnlcm5hbwu6
4,emhlbmc=(user name Base64 encoded results, assuming Zheng), successfully displayed:
334 Ugfzc3dvcmq6
5,emhlbmc=(password base64 encoded results, assuming Zheng), successfully displayed:
235 Authentication Successful
(Base64 Online Coding tool: http://base64.xpcha.com/)
6,Mail from:< sender @163.com>, successfully displayed:
+ Mail OK
7,rcpt to:< recipient [email protected]>, successful display:
+ Mail OK
To send more than one person, add RCPT to:
rcpt to:< recipient [email protected]>, successful display:
+ Mail OK
8,data, start to enter the message information, successfully displayed (expressed as "." End):
354 END data with <CR><LF>.<CR><LF>
9, the following green word is sent in Chinese utf-8 coding needs, the content using Base64 encoding, assuming that the sender of small Zheng, the recipient of gene, Xiao Yan, the theme of "Test telnet send mail", the body of "hello." There is a blank line in front of the body, and finally the "." End.
From:=? UTF-8? B? 5bcp6yor? = < Sender @163.com>
To:=? UTF-8? B? 5bcp5l+k? = < recipient [email protected]>; =? UTF-8? B? 5bcp54ev? = < recipient [email protected]>
Subject:=? UTF-8? B? 5RWL6K+VDGVSBMV05Y+R6YCB6YKU5LU2? =
content-type:text/plain;charset= "Utf-8"
Content-transfer-encoding:base64
5l2g5aw9
.
Successful display:
+ Mail OK queued as smtp14,escowedj9zockwlvcypaaa--. 1088s2 1426664723
10,quit, quit.
telnet Send mail