telnet Send mail

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.