mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-28 05:05:14 +01:00
Try using email.send() :/
This commit is contained in:
parent
644ffe954d
commit
3601eab591
@ -129,12 +129,7 @@ public class SendMailSSL {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (!Settings.emailOauth2Token.isEmpty())
|
email.send();
|
||||||
{
|
|
||||||
SMTPTransport.send(email.getMimeMessage(), acc, "");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
SMTPTransport.send(email.getMimeMessage());
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
ConsoleLogger.showError("Fail to send a mail to " + mail + " cause " + e.getLocalizedMessage());
|
ConsoleLogger.showError("Fail to send a mail to " + mail + " cause " + e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user