IDEMPIERE-4918 Cannot use simple auth after used OAuth (FHCA-2014) (#842)

This commit is contained in:
Carlos Ruiz 2021-08-18 14:51:44 +02:00 committed by GitHub
parent 8cc3a2a33f
commit 68a5dc1456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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";

View File

@ -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);