Set default timeout for sending of email to 20 seconds.

This commit is contained in:
Heng Sin Low 2011-02-10 10:00:19 +08:00
parent f72cccd1ce
commit 16c60adc49
1 changed files with 3 additions and 0 deletions

View File

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