|Summary:||Add "trys" attribute|
|Product:||Taglibs||Reporter:||David Graham <dgraham1980>|
|Component:||Mailer Taglib||Assignee:||Tomcat Developers Mailing List <dev>|
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 email@example.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.