mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 15:40:59 +01:00
Fixed JavaMail session
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user