Try using email.send() :/

This commit is contained in:
Xephi 2015-12-21 17:08:12 +01:00
parent 644ffe954d
commit 3601eab591

View File

@ -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());
}