Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Re: Smtp Server error with JavaMail
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Federico, post: 530789"] Thank to both Joseph and Gary, but it's still not working. The smtp.jar is in the classpath, as the mail.jar and even the activation.jar. I've tried with the Gary's suggestions in the code, but it's still not working. What could be!??!?!?!? Now is even changed the errore message: DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at javax.mail.Session.getService(Session.java:607) at javax.mail.Session.getTransport(Session.java:541) at javax.mail.Session.getTransport(Session.java:484) at javax.mail.Session.getTransport(Session.java:464) at sendMail.sendMail.<init>(sendMail.java:43) at sendMail.simpleSendMessage.main(simpleSendMessage.java:50) Caused by: java.lang.NoSuchMethodError: javax.mail.Session.getDebugOut()Ljava/io/PrintStream; at com.sun.mail.smtp.SMTPTransport.<init>(SMTPTransport.java:72) ... 10 more javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:611) at javax.mail.Session.getTransport(Session.java:541) at javax.mail.Session.getTransport(Session.java:484) at javax.mail.Session.getTransport(Session.java:464) at sendMail.sendMail.<init>(sendMail.java:43) at sendMail.simpleSendMessage.main(simpleSendMessage.java:50) Exception in thread "main" [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Re: Smtp Server error with JavaMail
Top