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