Skip to content

Commit

Permalink
Thymeleaf solo per le email
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrycz committed Apr 16, 2019
1 parent f878942 commit 2eb547b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import it.cnr.si.service.CnrgroupService;
import it.cnr.si.service.FlowsUserService;
import it.cnr.si.service.MailService;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -80,12 +81,13 @@ public void sendFlowEventNotification(String notificationType, Map<String, Objec
mailConfig.getMailRecipients().stream()
.filter(s -> !s.isEmpty())
.forEach(s -> {
LOGGER.info("Invio mail a {} con titolo Notifica relativa al flusso {} del tipo {} nello stato {} e con contenuto {}",
LOGGER.debug("Invio mail a {} con titolo Notifica relativa al flusso {} del tipo {} nello stato {} e con contenuto {}",
s,
variables.get("businessKey"),
notificationType,
variables.get("stato"),
htmlContent);
StringUtils.abbreviate(htmlContent, 30));
LOGGER.trace("Corpo email per intero: {}", htmlContent);
sendEmail(s, "Notifica relativa al flusso " + variables.get("businessKey"), htmlContent, false, true);
});
} else {
Expand Down

0 comments on commit 2eb547b

Please sign in to comment.