Fixed JavaMail session

This commit is contained in:
M66B
2018-08-05 05:32:10 +00:00
parent 676eec35c7
commit eea2c15587
3 changed files with 5 additions and 5 deletions

View File

@@ -244,7 +244,7 @@ public class FragmentIdentity extends Fragment {
// Check SMTP server
if (identity.synchronize) {
Properties props = MessageHelper.getSessionProperties();
Session isession = Session.getDefaultInstance(props, null);
Session isession = Session.getInstance(props, null);
Transport itransport = isession.getTransport(identity.starttls ? "smtp" : "smtps");
try {
itransport.connect(identity.host, identity.port, identity.user, identity.password);