DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37868>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37868 Summary: failed to send email from jsp web site on tomcat Product: Commons Version: 1.0 Final Platform: Other OS/Version: Linux Status: NEW Severity: major Priority: P5 Component: Email AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Jakarta email is used in my web site to send emails. But the emails are failed in several days after tomcat reboot. I have to ask the admin to reboot the tomcat then the web site can send email again. The tomcat is on a server shared by other web sites and the email server requires authentication. I pasted the code to bellow. I hope someone can point what has gone wrong. Thanks in advance. Fred //send email SimpleEmail email=new SimpleEmail(); try { email.setHostName(hostName); email.addTo(emailComments); email.setFrom(contactForm.getEmail(), contactForm.getName()); email.setSubject("User comments"); email.setMsg(contactForm.getComments()); email.setAuthentication(userName, password); email.send(); } catch (EmailException ex) { logger.error(ex.getMessage()); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
