1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Fixed 'syntactically invalid' workaround

This commit is contained in:
M66B 2020-01-10 15:06:25 +01:00
parent b0a554e993
commit eb4b1bd96c

View file

@ -370,8 +370,8 @@ public class MailService implements AutoCloseable {
if (useip &&
ex.getMessage() != null &&
ex.getMessage().toLowerCase().contains("syntactically invalid")) {
Log.i("Using localhost=" + domain);
properties.put("mail." + protocol + ".localhost", domain);
Log.w("Using localhost=" + domain, ex);
((SMTPTransport) iservice).setLocalHost(domain);
iservice.connect(host, port, user, password);
} else
throw ex;