IDEMPIERE-4356 : System properties shouldn't not be used when sending emails (#154)
* IDEMPIERE-4356 Using Hiep's idea Co-Authored-By: hieplq <hieplq@users.noreply.github.com> * IDEMPIERE-4356 Following Carlos's tests/advices, add current System Properties to the Properties initialized for the email Co-Authored-By: Carlos Ruiz <carg67@gmail.com> Co-authored-by: hieplq <hieplq@users.noreply.github.com> Co-authored-by: Carlos Ruiz <carg67@gmail.com>
This commit is contained in:
parent
d6e5cdc26a
commit
4c1236e938
|
@ -252,7 +252,8 @@ public final class EMail implements Serializable
|
||||||
return m_sentMsg;
|
return m_sentMsg;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
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_smtpHost);
|
props.put("mail.host", m_smtpHost);
|
||||||
|
|
Loading…
Reference in New Issue