Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP 协议简介 #77

Open
MengZhaoFly opened this issue Aug 11, 2020 · 0 comments
Open

SMTP 协议简介 #77

MengZhaoFly opened this issue Aug 11, 2020 · 0 comments

Comments

@MengZhaoFly
Copy link
Owner

SMTP

简单邮件传输协议(英语:Simple Mail Transfer Protocol,缩写:SMTP)是一个在互联网上传输电子邮件的标准。

原始的 telnet 发送邮件

telnet smtp.qq.com 25
回:
Trying 183.3.225.42...
Connected to smtp.qq.com.
Escape character is '^]'.
220 newxmesmtplogicsvrszc8.qq.com XMail Esmtp QQ Mail Server.

auth login
334 Username:
xxxxx(邮箱名)
334 Password:
 IMAP/SMPT 时授权码

回:
235 Authentication successful

可能需要和服务器打个招呼:
HELO/EHLO first
HELO qq

即可发送邮件
mail from:<[email protected]>
回:
250 OK.
rcpt to:<[email protected]>
回:
250 OK.
data
回:
354 End data with <CR><LF>.<CR><LF>.

即可输入报文:
from: [email protected]
subject: you are dog
boydy
.

传送过程

  • 连接建立
发送HELO命令
  • 报文

image

  • 终止连接
quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant