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.
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.