Hello seam users,
I'm searching for a way to retreive the generated mail from seam mail (created with rendered.render) to store it in a simple database table (with id and mail content as columns).
It seems that renderer.render returns an empty string in case of a mail.
What's the best way to do this ?
Use JavaMail directly. Or if really want to stick with Seam mail (UIMessage, etc), you could try writing your
own JavaMail Transport, plug it into JavaMail, and save the message before sending it. Shouldn't be too
hard, but if you want more control, just use JavaMail directly.