赞
踩
3个主要组成部分
用户代理
邮件服务器
以下是两个右键服务器进行SMTP交互的流程
S: 220 hamburger.edu
C: HELO crepes.fr
S: 250 Hello crepes.fr, pleased to meet you
C: MAIL FROM: <alice@crepes.fr> #邮件来自的邮箱
S: 250 alice@crepes.fr... Sender ok #接受成功
C: RCPT TO: <bob@hamburger.edu> #邮件去往的邮箱
S: 250 bob@hamburger.edu ... Recipient ok # 接受成功
C: DATA # 邮件信息
S: 354 Enter mail, end with "." on a line by itself
C: Do you like ketchup?
C: How about pickles?
C: .
S: 250 Message accepted for delivery
C: QUIT
S: 221 hamburger.edu closing connection
HTTP比较
SMTP:交换email报文的协议
RFC 822:文本交换的标准
首部行:如
与SMTP命令不同
主体
用户确认阶段
事物处理阶段
客户端:
# 用户确认阶段 S: +OK POP3 server ready C: user bob S: +OK C: pass hungry S: +OK user successfully logged on # 事物处理阶段 C: list S: 1 498 S: 2 912 S: . C: retr 1 S: <message 1 contents> S: . C: dele 1 C: retr 2 S: <message 1 contents> S: . C: dele 2 C: quit S: +OK POP3 server signing off
IMAP
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。