2 Replies Latest reply on Mar 2, 2011 5:02 AM by Syed Mahdi

    Seam email with ui:repeat producing multiple To: headers

    Robert Hare Newbie

      Hi all,

      I relatively new to Seam, and I want to make sure I'm not just doing something stupid before I report a bug. I'm trying to send an e-mail with multiple recipients using the following (from examples - with extra junk removed:):

              <ui:repeat value="#{orderForm.clubOrder.club.representatives}" var="_rep">
                  <m:to name="#{_rep.name}" address="#{_rep.email}" />
              <m:subject> .... </m:subject>
              <m:body> ...</m:body>

      I'm iterating over the list of recipients, the problem is instead of getting a To: header with multiple comma separated addresses I get multiple To: headers which after reading RFC-5322 sure looks like a violation, and it doesn't work - only the first address get the message.  Everything else appears to be working fine and e-mail gets delivered to the first address.

      So, am I just missing something?  I understand I can iterate outsize the


      tag, but I would really rather send 1 email with multiple recipients (ie. each recipient can see the others) versus each recipient looking like they are the only receivers.