This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes javax mail AuthenticationFailedException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "javax mail AuthenticationFailedException" Watch "javax mail AuthenticationFailedException" New topic
Author

javax mail AuthenticationFailedException

Satishkumar Krishnasamy
Greenhorn

Joined: Dec 29, 2008
Posts: 1
Hi, I am getting the below exception while I try to send email through my application.

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)

In my java code I didn't use any authentication functionality. If I restart my WebSphere server, the issue gets resolved by itself. But it is happening frequently and I am restarting the server on the daily basis. Any help is greatly appreciated.

In the Java code for configuring the mail properties, I am using the below snippet

Properties props = System.getProperties();
instead
Properties props = new Properties()

Will that be the problem? Will the server properties over right the values. If so do you know where can I get the System Property values. Please let me know, if you need any info on this.

Regards,
Satishkumar.K



Rohith Shetty
Greenhorn

Joined: Jul 02, 2013
Posts: 1
Hi Satishkumar,

I am also facing the same issue.
Can you please tell me, What solution did you adopted?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: javax mail AuthenticationFailedException
 
Similar Threads
Java Mail Problem
Unable to send simple mail using java mail api
What should be the value of 'host' when I send an e-mail?
problem in sending mail
JavaMail : "Access not allowed"