From 68a5dc1456e2414b664f1811d6235bb783777791 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 18 Aug 2021 14:51:44 +0200 Subject: [PATCH] IDEMPIERE-4918 Cannot use simple auth after used OAuth (FHCA-2014) (#842) --- org.adempiere.base/src/org/compiere/util/EmailSrv.java | 3 ++- .../src/main/server/org/compiere/server/EMailProcessor.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/util/EmailSrv.java b/org.adempiere.base/src/org/compiere/util/EmailSrv.java index 34ea75ea8e..a81bc07c71 100644 --- a/org.adempiere.base/src/org/compiere/util/EmailSrv.java +++ b/org.adempiere.base/src/org/compiere/util/EmailSrv.java @@ -171,7 +171,8 @@ public class EmailSrv { return mailSession; // Session - Properties props = System.getProperties(); + Properties props = new Properties(); + props.putAll(System.getProperties()); String protocol = "imap"; if (isSSL){ protocol = "imaps"; diff --git a/org.adempiere.server/src/main/server/org/compiere/server/EMailProcessor.java b/org.adempiere.server/src/main/server/org/compiere/server/EMailProcessor.java index 1595593e0f..c9b5990d1e 100644 --- a/org.adempiere.server/src/main/server/org/compiere/server/EMailProcessor.java +++ b/org.adempiere.server/src/main/server/org/compiere/server/EMailProcessor.java @@ -136,7 +136,8 @@ public class EMailProcessor return m_session; // Session - Properties props = System.getProperties(); + Properties props = new Properties(); + props.putAll(System.getProperties()); props.put("mail.store.protocol", "smtp"); props.put("mail.transport.protocol", "smtp"); props.put("mail.host", m_host);