This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Tomcat fails to send e-mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Tomcat fails to send e-mail" Watch "Tomcat fails to send e-mail" New topic
Author

Tomcat fails to send e-mail

edwin angarita
Greenhorn

Joined: Aug 28, 2010
Posts: 3

Hello everyone in Javaranch, I am having a little issue and I don't know exactly how to solve it, I have a Java mail connection with a smtps server (ssh) I get the certified and everything works fine, my applications send emails without a problem, but after 15 days or a month the application start to fail, doesn't send any email and i get the following exception

the line 591 is the following

that's the line where i connect to the sender email and my password

but if I restart my tomcat the java mail start working again
this problem is driving my crazy, please i will appreciate any help!!!
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

One possibility could be, there are stale connections with the SMTP server which after sometime somehow interfere with your new connections. Examine the code to see, if you have released the connection resources completely.


S.D. MADHAN
Not many get the right opportunity !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat fails to send e-mail
 
Similar Threads
how to set connection time out in gmail for sending and reading mail account ?
why java mail application not portable for both standalone and web
Unrecognized SSL message, plain text connection
Email: java.lang.ClassFormatError
Sending Mail using Java