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