You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/12/12 10:22:59 UTC
DO NOT REPLY [Bug 37868] New: -
failed to send email from jsp web site on tomcat
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: commons-dev@jakarta.apache.org
ReportedBy: fred.yu@xtra.co.nz
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org