1
0
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:
cketti 2013-04-26 02:30:27 +02:00
commit 46ed21d9f5

View File

@ -77,13 +77,13 @@ public class SmtpTransport extends Transport {
String scheme = smtpUri.getScheme(); String scheme = smtpUri.getScheme();
if (scheme.equals("smtp")) { if (scheme.equals("smtp")) {
connectionSecurity = ConnectionSecurity.NONE; connectionSecurity = ConnectionSecurity.NONE;
port = 25; port = 587;
} else if (scheme.equals("smtp+tls")) { } else if (scheme.equals("smtp+tls")) {
connectionSecurity = ConnectionSecurity.STARTTLS_OPTIONAL; connectionSecurity = ConnectionSecurity.STARTTLS_OPTIONAL;
port = 25; port = 587;
} else if (scheme.equals("smtp+tls+")) { } else if (scheme.equals("smtp+tls+")) {
connectionSecurity = ConnectionSecurity.STARTTLS_REQUIRED; connectionSecurity = ConnectionSecurity.STARTTLS_REQUIRED;
port = 25; port = 587;
} else if (scheme.equals("smtp+ssl+")) { } else if (scheme.equals("smtp+ssl+")) {
connectionSecurity = ConnectionSecurity.SSL_TLS_REQUIRED; connectionSecurity = ConnectionSecurity.SSL_TLS_REQUIRED;
port = 465; port = 465;