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