Bug 11346 - Add "trys" attribute
Summary: Add "trys" attribute
Status: CLOSED WONTFIX
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Mailer Taglib (show other bugs)
Version: 1.0
Hardware: Other other
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-31 20:13 UTC by David Graham
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Graham 2002-07-31 20:13:05 UTC
I've had intermittent problems sending mail through my mail server when specifying the server 
attribute.  This error shows up in the log file:

Could not send the e-mail sent to 
dgraham1980@hotmail.com:  Sending failed;
  nested exception is: 

	javax.mail.MessagingException: Could not connect to SMTP host: myhost.myhost.com, port: 
25;
  nested exception is: 
	java.net.ConnectException: Connection refused: 
connect

It would be nice if the tag had a "trys" or "attempts" attribute that would allow it to 
retry the connection that many times and then exit if still not succesfull.  Thanks.
Comment 1 Glenn Nielsen 2002-10-31 12:40:41 UTC
The taglib launches a background thread to send the email.
I don't think it is a good idea to have that background thread
attempt to deliver the email more than once.
If you have a remote SMTP host which is not reliable you need to
setup an SMTP daemon on the same system you are running your
web application on for outgoing email.  That would always be
reliable and available.