#956 Fix sending of email with recovery code
This commit is contained in:
parent
69e489626f
commit
1102097e8a
@ -69,7 +69,6 @@ public class SendMailSSL {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
|
|
||||||
HtmlEmail email;
|
HtmlEmail email;
|
||||||
try {
|
try {
|
||||||
email = initializeMail(mailAddress);
|
email = initializeMail(mailAddress);
|
||||||
@ -147,6 +146,7 @@ public class SendMailSSL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean sendEmail(String content, HtmlEmail email) {
|
private static boolean sendEmail(String content, HtmlEmail email) {
|
||||||
|
Thread.currentThread().setContextClassLoader(SendMailSSL.class.getClassLoader());
|
||||||
try {
|
try {
|
||||||
email.setHtmlMsg(content);
|
email.setHtmlMsg(content);
|
||||||
email.setTextMsg(content);
|
email.setTextMsg(content);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user