Basic POP3 support

This commit is contained in:
M66B
2019-02-09 21:03:53 +00:00
parent e64178d530
commit e7dd1a01b1
18 changed files with 1810 additions and 78 deletions

View File

@@ -585,11 +585,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);