3 Replies Latest reply: Dec 10, 2012 2:17 PM by user1937458 RSS

    Help with sending emails to multiple users.

    user1937458
      Currently we have a process to send mail to muliple users by looping through the list of users and sending each individual an email

      <Action id='1' name='sendEmail' application='com.waveset.provision.WorkflowServices'>
      <Argument name='op' value='notify'/>
      <Argument name='template' value='$(template)'/>
      <Argument name='toUser' value='$(tuser)'/>
      <Argument name='catch' value='notificationException'/>
      </Action>

      The variable tuser contains a single email address.

      Is there any way to setup tuser to contain multiple email addresses?

      I have tried passing a list and a string separated by colons (ex: <s>abc@test.com; def@test.com</s>) and neither one works.


      Question 2
      Is it a bad idea to try and send email to up to 50000 users at once using IDM? Besides the fact that I would need to search for specific users and get their email addresses based on their capabilities.
        • 1. Re: Help with sending emails to multiple users.
          arjun.sengupta
          Hi,

          For sending emails to multiple users, use to instead of toUser. Put the names in comma seperated values

          <Action id='0' application='com.waveset.provision.WorkflowServices'>
          <Argument name='op' value='notify'/>
          <Argument name='template' value='$(template)'/>
          <Argument name='to' value='$(to)'/>
          <Argument name='cc' value='$(cc)'/>
          <Argument name='catch' value='notificationException'/>
          </Action>

          You can use IDM to send emails.

          it will be a good idea to break down the email that you are sending into groups/batches. If possible, you can send email to DL s

          Else, you can segregate the users based on roles and send emails. This will reduce the load. Hope it helps

          Regards
          Arjun

          Edited by: arjun.sengupta on Dec 4, 2012 3:26 AM
          • 2. Re: Help with sending emails to multiple users.
            user243865
            If your bulk sending, I would use the Bcc option so that you don't share everyone's email addresses with everybody else when you do multiple receivers on one line.

            It might not be an issue for you/them, but I consider it good manners :-D

            /dhurgan
            • 3. Re: Help with sending emails to multiple users.
              user1937458
              Thank you both.

              That should do the trick and the Bcc is the way to go specially in this day and age.