POP support

This commit is contained in:
M66B
2019-02-08 11:51:17 +00:00
parent 1768028fd4
commit f246284812
11 changed files with 1614 additions and 34 deletions

View File

@@ -581,11 +581,11 @@ public class FragmentIdentity extends FragmentBase {
// Check SMTP server
if (check) {
String transportType = (starttls ? "smtp" : "smtps");
String protocol = (starttls ? "smtp" : "smtps");
Properties props = MessageHelper.getSessionProperties(auth_type, realm, insecure);
Session isession = Session.getInstance(props, null);
isession.setDebug(true);
Transport itransport = isession.getTransport(transportType);
Transport itransport = isession.getTransport(protocol);
try {
try {
itransport.connect(host, Integer.parseInt(port), user, password);