You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Mailer::sendMail the Transport could be left open when an error occurs during sending.
It might be better to use a try-finally block like in this example in the official FAQs.
The text was updated successfully, but these errors were encountered:
Since JavaMail 1.5 there also seem to be new static Transport::send methods that do the proper cleanup for you. But that might break backward compatibility for users of this library with older JavaMail versions.
The simple-java-mail is mature enough by now that I don't see any critical bug fixes coming very soon for older versions, so I'm probably going to go ahead and use the newer mail API for the next simple-java-mail installment.
In
Mailer::sendMail
theTransport
could be left open when an error occurs during sending.It might be better to use a
try-finally
block like in this example in the official FAQs.The text was updated successfully, but these errors were encountered: