AnsweredAssumed Answered

[BUG]Alfresco sending multiple emails depending on the number of user in a group

Question asked by samnaction on Mar 25, 2014
Latest reply on Mar 27, 2014 by sanket
I added a javascript to send an email to a particular group whenever a site is created but the problem is if the group has three members each will receive three mails. If there is 250 members each will receive 250 emails. I dont know what is the problem.

Here is my javascript

var parent = space.getParent();
var mail = actions.create("mail");
var url = "http://pc1:8080/share/page/site/" + + "/dashboard";
mail.parameters.to_many = siteGroup;
mail.parameters.subject="New Site Created in Community"
mail.parameters.text="Click http://pc1:8080/share/page/site/" + + "/dashboard to join the site"
//execute action against a document