mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 19:25:34 +00:00
Use reversed package name as SMTP host name
This commit is contained in:
parent
8e7903e07b
commit
6cf2fae5fb
1 changed files with 5 additions and 1 deletions
|
@ -18,6 +18,8 @@ import java.net.Inet6Address;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.net.UnknownHostException;
|
import java.net.UnknownHostException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -301,7 +303,9 @@ public class MailService implements AutoCloseable {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ("smtp".equals(protocol) || "smtps".equals(protocol)) {
|
} else if ("smtp".equals(protocol) || "smtps".equals(protocol)) {
|
||||||
String haddr = BuildConfig.APPLICATION_ID;
|
String[] c = BuildConfig.APPLICATION_ID.split("\\.");
|
||||||
|
Collections.reverse(Arrays.asList(c));
|
||||||
|
String haddr = TextUtils.join(".", c);
|
||||||
|
|
||||||
if (useip)
|
if (useip)
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue