Change smtp+tls default port to 587.
This commit is contained in:
parent
3d884a8f1c
commit
6c1b3cbc68
1 changed files with 2 additions and 2 deletions
|
@ -80,10 +80,10 @@ public class SmtpTransport extends Transport {
|
|||
port = 25;
|
||||
} 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 a new issue