Send mail via telnet test mail server

Source: Internet
Author: User

Summary: SMTP

SMTP uses commands and answers to transmit messages between the client and the server. That is, the client issues a command, and the server returns an answer. The sender and the receiver make a one-to-one interaction, and the sender controls the conversation. Today we introduce two kinds of sending methods, anonymous + real name (need to verify). The difference is that the real name authentication can be sent to the outside network, anonymous users in the general server is not allowed to relay, only the intranet (the domain mailbox) to send mail test.

First, send mail anonymously

First, ' Start '-' run ', enter CMD, and go to the Command Prompt window.

1, Telnet to the SMTP server in the Command Line window input Telnet xxx.xxx.xxx.xxx 25 and then enter (here with the test mailbox server, the port number is 25. Domain and IP addresses are available)

Then the window will return a message that each mailbox is different

2. Anonymous User Login

Enter Helo carriage return, which is to indicate your user identity to the server: the server will return code 250 indicating that the server recognizes your identity

(Note: The letter at this time can not be wrong, because each of your keystrokes has actually been transferred to the server, so input errors can not use backspace key to delete, only newline re-input)

3. Fill in the sender and the address of the addressee.

Enter mail from:<> carriage return, <> fill in the sender's mailbox; Anonymous send message senders are free to fill in.

Input RCPT to:<> Enter;<> to fill in the recipient's mailbox;

4. Write Mail

Enter data return and the server returns: 354 end data with <CR><LF>.<CR><LF> means to end after two consecutive returns

The following options are available under data:

Enter from: Sender name, which can be filled in, and will be displayed in the ' From ' column of the inbox

Enter to: Recipient name, can be filled in, will be displayed in the Inbox ' Recipients ' column

Enter Subject: A letter subject, displayed in the ' Subject ' column of your inbox

A blank line is required, that is, a direct carriage return in a blank row, indicating the beginning of the body part

Enter the body content of the letter after a blank line.

Enter one at the end of the body input. (Full period under English Input method) Enter, which indicates the end of the body part and immediately sends the message. This will display the message that was sent successfully. The following is a demonstration of anonymous sending.

650) this.width=650; "title=" N Anonymous. png "alt=" wkiom1einkkr7q4daabk3wfdb44136.png-wh_50 "src=" http://s2.51cto.com/ Wyfs02/m00/85/67/wkiom1einkkr7q4daabk3wfdb44136.png-wh_500x0-wm_3-wmp_4-s_3043237734.png "/>

Second, the real name to send mail

First, ' Start '-' run ', enter CMD, and go to the Command Prompt window.

1, Telnet to the SMTP server in the Command Line window input Telnet xxx.xxx.xxx.xxx 25 and then enter (here with the test mailbox server, the port number is 25)

Then the window will return a message that each mailbox is different

2. User Login

Enter EHLO carriage return, which indicates your user identity to the server: the server will return code 250 to indicate that the server recognizes your identity. Note that before we entered "helo", the difference is here.

(Note: The letter at this time can not be wrong, because each of your keystrokes has actually been transferred to the server, so input errors can not use backspace key to delete, only newline re-input)

Enter Auth login, which tells the server that you want to enter a user name (that is, the user name when you log in to the mailbox), and the server returns a confirmation message 334.

Then enter the user name and password (that is, the mailbox account and password, but must go through the BASE64 encoding server to be recognized, can be converted online into BASE64 encoding can be)

Enter user name return to server 334

Enter password Return Server 235 login Successful

3. Fill in the sender and the address of the addressee.

Enter Mail from:< > return <> fill in the sender's mailbox, which is your own mailbox name

Input RCPT to:< > enter <> fill in the recipient's mailbox (here the mailbox name is not BASE64 encoded)

4. Write Mail

Enter data return and the server returns: 354 end data with <CR><LF>.<CR><LF> means to end after two consecutive returns

The following options are available under data:

Enter from: Sender name, which can be filled in, and will be displayed in the ' From ' column of the inbox

Enter to: Recipient name, can be filled in, will be displayed in the Inbox ' Recipients ' column

Enter Subject: A letter subject, displayed in the ' Subject ' column of your inbox

A blank line is required, that is, a direct carriage return in a blank row, indicating the beginning of the body part

Enter the body content of the letter after a blank line.

Enter one at the end of the body input. (Full period under English input method) returns the end of the body part to send the message immediately. This will display the message that was sent successfully.

650) this.width=650; "title=" s real name. png "alt=" wkiom1eio3_zq0a0aaccpmrow6k684.png-wh_50 "src=" http://s2.51cto.com/ Wyfs02/m01/85/67/wkiom1eio3_zq0a0aaccpmrow6k684.png-wh_500x0-wm_3-wmp_4-s_956345497.png "/>

This article is from the "My World" blog, so be sure to keep this source http://biweili.blog.51cto.com/4234993/1834198

Send mail via telnet test mail server

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.