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;
|
return mailSession;
|
||||||
|
|
||||||
// Session
|
// Session
|
||||||
Properties props = System.getProperties();
|
Properties props = new Properties();
|
||||||
|
props.putAll(System.getProperties());
|
||||||
String protocol = "imap";
|
String protocol = "imap";
|
||||||
if (isSSL){
|
if (isSSL){
|
||||||
protocol = "imaps";
|
protocol = "imaps";
|
||||||
|
|
|
@ -136,7 +136,8 @@ public class EMailProcessor
|
||||||
return m_session;
|
return m_session;
|
||||||
|
|
||||||
// Session
|
// Session
|
||||||
Properties props = System.getProperties();
|
Properties props = new Properties();
|
||||||
|
props.putAll(System.getProperties());
|
||||||
props.put("mail.store.protocol", "smtp");
|
props.put("mail.store.protocol", "smtp");
|
||||||
props.put("mail.transport.protocol", "smtp");
|
props.put("mail.transport.protocol", "smtp");
|
||||||
props.put("mail.host", m_host);
|
props.put("mail.host", m_host);
|
||||||
|
|
Loading…
Reference in New Issue