IDEMPIERE-4918 Cannot use simple auth after used OAuth (FHCA-2014) (#842)
This commit is contained in:
parent
8cc3a2a33f
commit
68a5dc1456
|
@ -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";
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue