mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-26 20:26:01 +01:00
#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
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user