Bug 11346

Summary: Add "trys" attribute
Product: Taglibs Reporter: David Graham <dgraham1980>
Component: Mailer TaglibAssignee: Tomcat Developers Mailing List <dev>
Severity: enhancement    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: Other   
OS: other   

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: 
  nested exception is: 
	java.net.ConnectException: Connection refused: 

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.