r169 - trunk/cantharella.service/src/main/java/nc/ird/cantharella/service/config
Author: echatellier Date: 2013-03-04 14:24:47 +0100 (Mon, 04 Mar 2013) New Revision: 169 Url: http://forge.codelutin.com/projects/cantharella/repository/revisions/169 Log: Report success only when debug property is true (generate a success exception) Modified: trunk/cantharella.service/src/main/java/nc/ird/cantharella/service/config/ServiceContext.java Modified: trunk/cantharella.service/src/main/java/nc/ird/cantharella/service/config/ServiceContext.java =================================================================== --- trunk/cantharella.service/src/main/java/nc/ird/cantharella/service/config/ServiceContext.java 2013-03-04 11:33:07 UTC (rev 168) +++ trunk/cantharella.service/src/main/java/nc/ird/cantharella/service/config/ServiceContext.java 2013-03-04 13:24:47 UTC (rev 169) @@ -153,7 +153,9 @@ properties.put("mail.debug", mailDebugProperty); properties.put("mail.smtp.connectiontimeout", MAIL_SMTP_TIMEOUT); properties.put("mail.smtp.timeout", MAIL_SMTP_TIMEOUT); - properties.put("mail.smtp.reportsuccess", Boolean.TRUE); + if (mailDebugProperty) { + properties.put("mail.smtp.reportsuccess", Boolean.TRUE); + } mailSender.setJavaMailProperties(properties); mailSender.setHost(mailHostProperty); mailSender.setPort(MAIL_SMTP_PORT);
participants (1)
-
echatellier@users.forge.codelutin.com