Topic: JAVAMAIL问题请教!

  Print this page

1.JAVAMAIL问题请教! Copy to clipboard
Posted by: ycads
Posted on: 2003-12-02 09:18

最近要搞JAVAMAIL,
写了个代码,可是发送的时候出现如下问题!

javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.AuthenticationFailedException
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at MailServlet.startSend(MailServlet.java:87)
at MailServlet.main(MailServlet.java:106)
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:265)
at javax.mail.Service.connect(Service.java:135)
at javax.mail.Service.connect(Service.java:87)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:93)
at javax.mail.Transport.send0(Transport.java:163)
at javax.mail.Transport.send(Transport.java:81)
at MailServlet.startSend(MailServlet.java:87)
at MailServlet.main(MailServlet.java:106)
请按任意键继续 . . .

请教各位大侠!

2.Re:JAVAMAIL问题请教! [Re: ycads] Copy to clipboard
Posted by: why
Posted on: 2003-12-02 10:52

SMTP auth problem?
Without looking at your code, I could only recommend you to double check the password and perhaps study the JavaMail examples for the correct usage.
e.g. Is mail.smtp.auth properly set?

3.Re:JAVAMAIL问题请教! [Re: ycads] Copy to clipboard
Posted by: SQL20000
Posted on: 2003-12-03 13:50

现在的JAVAMAIL
要写认证的..

4.Re:JAVAMAIL问题请教! [Re: ycads] Copy to clipboard
Posted by: ycads
Posted on: 2003-12-03 14:49

thank!!!

我已经搞定,谢谢你们!!


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923