1 Reply Latest reply on May 27, 2008 10:50 PM by Pete Muir

    Can email rendering be separated from email sending?

    Jens Bimberg Newbie

      The renderer.render("template.xhtml") renders and sends an email message. Which is the best way to separate these two phases, for, e.g.:

      • not really sending messages in debug mode

      • keeping a log of all sent messages with their actual content

      • keeping a log of all not sent (because of mailer problems) messages with their would-be content

      • automatically sending unsent messages later

      I managed to override FaceletsRenderer.renderFacelet to get access to the rendered MimeMessage. But this doesn't help with the first problem (debug mode) and I'm not sure if it is the best approach for the others.