java+mail+authen_javamail 发送邮件 Authentication failed

成功的服务器

DEBUG: setDebug: JavaMail version 1.3.2

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]

DEBUG SMTP: useEhlo true, useAuth true

DEBUG SMTP: useEhlo true, useAuth true

DEBUG SMTP: trying to connect to host "smtp.exmail.sina.com", port 25, isSSL false

220 mail228.exmail.sina.com ESMTP

DEBUG SMTP: connected to host "smtp.exmail.sina.com", port: 25

EHLO 52hualin-427298

250-mail228.exmail.sina.com

250-8BITMIME

250-SIZE 83886080

250-STARTTLS

250-AUTH PLAIN LOGIN

250 AUTH=PLAIN LOGIN

DEBUG SMTP: Found extension "8BITMIME", arg ""

DEBUG SMTP: Found extension "SIZE", arg "83886080"

DEBUG SMTP: Found extension "STARTTLS", arg ""

DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"

DEBUG SMTP: Found extension "AUTH=PLAIN", arg "LOGIN"

DEBUG SMTP: Attempt to authenticate

AUTH LOGIN

334 VXNlcm5hbWU6

YW1pQHh1YW5zaGFuZ3Bpbi5jb20=

334 UGFzc3dvcmQ6

YW1pQHhzcDIwMTE=

235 #2.0.0 OK Authenticated

DEBUG SMTP: use8bit false

MAIL FROM:

250 sender ok

RCPT TO:

250 recipient ok

DEBUG SMTP: Verified Addresses

DEBUG SMTP: amily4555@126.com

DATA

354 go ahead

Message-ID: <13743917.1335400972265.JavaMail.Administrator@52hualin-427298>

From: ami@xuanshangpin.com

To: amily4555@126.com

Subject: I love you

MIME-Version: 1.0

Content-Type: text/plain; charset=us-ascii

Content-Transfer-Encoding: 7bit

I love u so long

.

250 ok: Message 77927182 accepted

QUIT

失败的..服务器

DEBUG: setDebug: JavaMail version 1.3.2

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]

DEBUG SMTP: useEhlo true, useAuth true

DEBUG SMTP: useEhlo true, useAuth true

DEBUG SMTP: trying to connect to host "smtp.exmail.sina.com", port 25, isSSL false

220 mail125.exmail.sina.com ESMTP

DEBUG SMTP: connected to host "smtp.exmail.sina.com", port: 25

EHLO servers-host

250-mail125.exmail.sina.com

250-8BITMIME

250-SIZE 83886080

250-STARTTLS

250-AUTH PLAIN LOGIN

250 AUTH=PLAIN LOGIN

DEBUG SMTP: Found extension "8BITMIME", arg ""

DEBUG SMTP: Found extension "SIZE", arg "83886080"

DEBUG SMTP: Found extension "STARTTLS", arg ""

DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"

DEBUG SMTP: Found extension "AUTH=PLAIN", arg "LOGIN"

DEBUG SMTP: Attempt to authenticate

AUTH LOGIN

500 #5.5.1 command not recognized

javax.mail.AuthenticationFailedException

at javax.mail.Service.connect(Service.java:264)

at javax.mail.Service.connect(Service.java:134)

at javax.mail.Service.connect(Service.java:86)

at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:144)

at javax.mail.Transport.send0(Transport.java:150)

at javax.mail.Transport.send(Transport.java:80)

at jms.EmailTest.testFindUserWithPg(EmailTest.java:59)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at junit.framework.TestCase.runTest(TestCase.java:164)

at junit.framework.TestCase.runBare(TestCase.java:130)

at junit.framework.TestResult$1.protect(TestResult.java:106)

at junit.framework.TestResult.runProtected(TestResult.java:124)

at junit.framework.TestResult.run(TestResult.java:109)

at junit.framework.TestCase.run(TestCase.java:120)

at junit.framework.TestSuite.runTest(TestSuite.java:230)

at junit.framework.TestSuite.run(TestSuite.java:225)

at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)

at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)

at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值