Created
April 14, 2014 08:13
-
-
Save yp2800/10626824 to your computer and use it in GitHub Desktop.
stdin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
telnet smtp.163.com 25 //登陆 smtp.163.com 端口号为 25 | |
Trying 202.108.44.205... | |
Connected to smtp.163.com (202.108.44.205). | |
Escape character is '^]'. | |
220 163.com Coremail SMTP(Anti Spam) System | |
// 与服务器打招呼,并告知客户端使用的机器名字,可以随便填写 | |
HELO localhost | |
250 OK | |
//使用身份认证登陆指令 | |
AUTH LOGIN | |
334 dXNlcm5hbWU6 | |
cmVkc29zMw== //输入已经base64_encode()过的用户名. | |
334 UGFzc3dvcmQ6 | |
MbM2MDQ3NQ== //输入已经base64_encode()过的密码 | |
235 Authentication successful | |
MAIL FROM:<redsos3@163.com> //告诉服务器发信人的地址 | |
250 Mail OK | |
RCPT TO:<yourframe@21cn.com> //告诉服务器收信人的地址 | |
250 Mail OK | |
DATA //正面开始传输信件的内容,且最后要以只含有 . 的特殊行结束。 | |
354 End data with <CR><LF>.<CR><LF> | |
To:yourframe@21cn.com | |
From:redsos3@163.com | |
Subject:test mail | |
From:redsos3@163.com | |
test body | |
. //结束传输信件 | |
250 Mail OK queued as smtp14,F0CPBFsuzUOvoDwE.41582S2 | |
QUIT //断开连接 | |
221 Bye | |
Connection closed by foreign host. | |
状态码说明: | |
220 :服务就绪 | |
250 :请求邮件动作正确,完成(HELO,MAIL FROM,RCPT TO,QUIT 指令执行成功会返回此信息) | |
235 :认证通过 | |
221 :正在处理 | |
354 :开始发送数据,结束以 .(DATA指令执行成功会返回此信息) | |
500 :语法错误,命令不能识别 | |
550 :命令不能执行,邮箱无效 | |
552 :中断处理:用户超出文件空间 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment