#956 Fix sending of email with recovery code

This commit is contained in:
ljacqu 2016-09-29 21:44:24 +02:00
parent 69e489626f
commit 1102097e8a

View File

@ -69,7 +69,6 @@ public class SendMailSSL {
@Override
public void run() {
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
HtmlEmail email;
try {
email = initializeMail(mailAddress);
@ -147,6 +146,7 @@ public class SendMailSSL {
}
private static boolean sendEmail(String content, HtmlEmail email) {
Thread.currentThread().setContextClassLoader(SendMailSSL.class.getClassLoader());
try {
email.setHtmlMsg(content);
email.setTextMsg(content);