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:
parent
b0a554e993
commit
eb4b1bd96c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue