AnsweredAssumed Answered

Email action to multiple recipients

Question asked by bengrah on Jan 27, 2012
Latest reply on Jan 23, 2013 by michaelc
Hi all.

I'm working on a Javascript that basically notifies a set of users when document(s) come into a folder. And I'm just using the basic action script action found in on the Wiki to do it.

   var mail = actions.create("mail"); = "";
   mail.parameters.subject = "Hello from JavaScript";
   mail.parameters.from = "";
   mail.parameters.template = root.childByNamePath("Company Home/Data Dictionary/Email Templates/notify_user_email.ftl");
   mail.parameters.text = "some text, in case template is not found";
   // execute action against a document   

What I'd like to know is, is it possible to add multiple recipients to this action? For example: = ";";

I have tried this approach before and it didn't work, so in the end I had to resort to a method call and run the same block of code multiple times depending on how many people I want to email. Any have any ideas?