Set default timeout for sending of email to 20 seconds.
This commit is contained in:
parent
f72cccd1ce
commit
16c60adc49
|
@ -209,6 +209,9 @@ public final class EMail implements Serializable
|
||||||
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);
|
||||||
|
//Timeout for sending the email defaulted to 20 seconds
|
||||||
|
props.put("mail.smtp.timeout", 20000);
|
||||||
|
|
||||||
if (CLogMgt.isLevelFinest())
|
if (CLogMgt.isLevelFinest())
|
||||||
props.put("mail.debug", "true");
|
props.put("mail.debug", "true");
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue