今天遇到邮件发布出去的问题,通过下面方法测试邮件服务器可得
telnet smtp.163.com 25
Trying 123.125.50.134...
Connected to smtp.163.gslb.netease.com.
Escape character is '^]'.
220 ***********************************************************
EHLO smtp.163.com
250-mail
250-PIPELINING
250-AUTH LOGIN PLAIN (如果有这两行,代表服务器需要验证登陆,否则不需要)
250-AUTH=LOGIN PLAIN
250-XXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXA
250-XXXXXXXB
250 8BITMIME
AUTH LOGIN
334 dXNlcm5hbWU6
milo103<直接用帐号不行,需要用base64编码>
535 Error: authentication failed
bWlsbzEwMw==
502 Error: command not implemented
AUTH LOGIN
334 dXNlcm5hbWU6
。。。。。==<我的帐号>
334 UGFzc3dvcmQ6
。。。。。==<我的密码>
235 Authentication successful
MAIL FROM:<sanroid@gmail.com>
553 You are not authorized to send mail, authentication is required
mail from:<milo103@163.com>
250 Mail OK
data
503 bad sequence of commands
rcpt to:<milo103@163.com>
250 Mail OK
data
354 End data with <CR><LF>.<CR><LF>
noop
to:milo103@163.com
from:milo103@163.com
subject:test by telnet/smtp
test,just a test
.
250 Mail OK queued as smtp4,DtGowLCbDY5xqy9N2hB2AA--.11858S3 1294970103
quit
221 Bye
Connection closed by foreign host.
本文通过telnet工具详细记录了使用163邮箱SMTP服务器发送邮件的过程及遇到的问题。包括连接服务器、身份验证、邮件发送等步骤,并解决了未授权发送邮件的问题。
5万+

被折叠的 条评论
为什么被折叠?



