1 Reply Latest reply on Sep 3, 2009 4:06 AM by kapitanpetko

    Get generated mail from seam mail

      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 ?

        • 1. Re: Get generated mail from seam mail
          kapitanpetko

          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.


          HTH