当前位置: 代码迷 >> Java Web开发 >> JavaMail编程有关问题
  详细解决方案

JavaMail编程有关问题

热度:1909   发布时间:2013-02-25 21:09:50.0
JavaMail编程问题
S: 220 smtp.qq.com Esmtp QQ Mail Server
C: HELO .........@qq.com
S: 250 smtp.qq.com
S: 250 Ok
S: Login 334 VXNlcm5hbWU6
S: username 334 UGFzc3dvcmQ6
S: password 535 Authentication failed
C: Mail From:<.........@qq.com>
S: 501 mail from address must be same as authorization user
C: RCPT TO: <.........@qq.com>
S: 503 Error: need MAIL command
C: DATA
S: 503 Error: need RCPT command
C: .
S: 501 Error: malformed authentication response
C: QUIT
S: 221 Bye



tcp连接过程给出
但说我密码不匹配是因为我译码的错误吗?

------解决方案--------------------------------------------------------
应该是。你的解码算法不对吧
------解决方案--------------------------------------------------------
S: password 535 Authentication failed
C: Mail From:<.........@qq.com>
S: 501 mail from address must be same as authorization user

用户认证没有通过
并且发信邮箱应该和认证用户相同