2 Replies Latest reply on Mar 9, 2007 2:23 PM by gui92

    Send mails with Renderer.instance().render in loop don't wor

    gui92

      Hello

      I try to send multiple emails in a jsf backing bean :

      for (User u:getRecipients())
      {
       setCurrentRecipient(u);
       Renderer.instance().render(templatePath);
      }
      


      That's work great for the first iteration, but for the next ones, i get exceptions from the "m:from" tags:

      Illegal character in domain (noreply@test.comnoreply@test.com)
      Illegal character in domain (noreply@test.comnoreply@test.comnoreply@test.com)
      Illegal character in domain (noreply@test.comnoreply@test.comnoreply@test.comnoreply@test.com)
      Illegal character in domain (noreply@test.comnoreply@test.comnoreply@test.comnoreply@test.comnoreply@test.com)
      


      It seams to concatenate the vars in mail template at each iterations.

      I use SEAM 1.2GApatch1 and JBoss 4.0.5AS.

      Thanks for your help.