mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Merge branch 'smtp_port_fix'
This commit is contained in:
commit
46ed21d9f5
@ -77,13 +77,13 @@ public class SmtpTransport extends Transport {
|
||||
String scheme = smtpUri.getScheme();
|
||||
if (scheme.equals("smtp")) {
|
||||
connectionSecurity = ConnectionSecurity.NONE;
|
||||
port = 25;
|
||||
port = 587;
|
||||
} else if (scheme.equals("smtp+tls")) {
|
||||
connectionSecurity = ConnectionSecurity.STARTTLS_OPTIONAL;
|
||||
port = 25;
|
||||
port = 587;
|
||||
} else if (scheme.equals("smtp+tls+")) {
|
||||
connectionSecurity = ConnectionSecurity.STARTTLS_REQUIRED;
|
||||
port = 25;
|
||||
port = 587;
|
||||
} else if (scheme.equals("smtp+ssl+")) {
|
||||
connectionSecurity = ConnectionSecurity.SSL_TLS_REQUIRED;
|
||||
port = 465;
|
||||
|
Loading…
Reference in New Issue
Block a user