Bored with today's work, think of a student being referred to the last Telnet email, so I'd like to try. Finally, the successful practice, here to do a summary.
First, cmd into Telnet opens the reply:
The following red font is the command.
1,open smtp.163.com, connect the SMTP service. Successful display:
163.com Anti-Spam GT for Coremail System (163com[20141201])
2,helo localhost, say hello. Successful display:
OK
3,auth login, using password login mailbox, successfully displayed:
334 Dxnlcm5hbwu6
4,emhlbmc=(usernamebase64 encoded results, if for Zheng), successfully displayed:
334 Ugfzc3dvcmq6
5,emhlbmc=(passwordbase64 encoded results, if for 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 entering message information. Successful display (expressed as ".") End):
354 END data with <CR><LF>.<CR><LF>
9, the following green word is to send Chinese utf-8 coding needs, the content using Base64 code, if the sender of small Zheng, the recipient of gene, Xiao Yan, the theme of "Test telnet sent 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. Dropout.
Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.
Telnet sends an e-mail