Use telnet to log on to the smtp service and send an email

Source: Internet
Author: User

Today, I was unaware that someone else posted a post in a forum. using TELNET to connect to the mail server can forge the mail address, so I carefully read how to use TELNET to send emails.
I tested that both QQ and 163 were successfully sent, but the forged address was not enough. This article does not focus on that ....
First, you must use BASE64 to encrypt the user name and password used to log on to your mailbox.
You can use this website to encrypt http://tool.chinaz.com/Tools/base64.aspx online
Then
Telnet smtp.qq.com 25
Start Input
Helo xiaoyu
Auth login
EGlhb3l1 (encrypted user name xiaoyu)
EGlhb3l1 (encrypted password xiaoyu)
Mail from: <76126128@qq.com>
Rcpt to: <8454051@qq.com>
Data
From: 76126128@qq.com
To: 8454051@qq.com
Subject: test
 
Test
 
. (The last decimal point must be added. below is)


 
Status Code Description:
220: Service ready
250: The request email is correct and completed (HELO, mail from, rcpt to, QUIT command execution will return this message)
235: certified
221: Processing
354: Start sending DATA and end with. (This message will be returned if the DATA command is executed successfully)
500: syntax error. The command cannot be identified
550: The command cannot be executed, and the email address is invalid.
552: interrupt handling: the user exceeds the file space
Tags: telnet login smtp service 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.