Skip to content

Commit bcfe194

Browse files
committed
#204: Log exception for failing threads
1 parent e7040e4 commit bcfe194

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: src/main/java/org/simplejavamail/mailer/internal/mailsender/MailSender.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ the proxy bridge server (or connection pool in async mode) while a non-async ema
200200
executor.execute(new NamedRunnable("sendMail process") {
201201
@Override
202202
public void run() {
203-
sendMailClosure(session, email);
203+
try {
204+
sendMailClosure(session, email);
205+
} catch (Exception e) {
206+
LOGGER.error("Failed to send email", e);
207+
}
204208
}
205209
});
206210
} else {

0 commit comments

Comments
 (0)