cancel
Showing results for 
Search instead for 
Did you mean: 

How to CC(email) users in a workflow when assigning a task.

bennym
Champ in-the-making
Champ in-the-making
I'm trying to cc users in a workflow, but when i send notification it only sends to the assignee, please help me!!!

mail.parameters.to = initiator.properties.email;
mail.parameters.cc = "benny@mangs.co.za";
7 REPLIES 7

vinaxwater
Champ in-the-making
Champ in-the-making
Hi friend,
In class MailActionExecuter.java not yet define for action cc in script of workflow Therefore You must edit source for action cc in class MailActionExecuter.java

Goodluck

bennym
Champ in-the-making
Champ in-the-making
I can't find this class "MailActionExecuter.java" in alfresco source

zaizi
Champ in-the-making
Champ in-the-making
You can use
mail.parameters.to_many = "user1, user2, user3, group1, group2";

vinaxwater
Champ in-the-making
Champ in-the-making
Hi friend,
mail.parameters.to_many < for send to many people
path MailActionExecuter.java is alfresco/project/reposotory/source/java/org/alfresco/repo/action/executer/
do this simple with eclipse by Ctrl + R
ps: use source from svn of alfresco.

Goodluck!

bennym
Champ in-the-making
Champ in-the-making
Thanks Zaizi and Zinaxwater, i'm still downloading the source.

zbennett
Champ in-the-making
Champ in-the-making
You can use
mail.parameters.to_many = "user1, user2, user3, group1, group2";

Should this work from JavaScript executed by a rule as well? I've tried using the to_many property a dozen different ways, but I keep getting errors.

zbennett
Champ in-the-making
Champ in-the-making
I was eventually able to answer my own question, and yes, you can use mail.properties.to_many via JavaScript.

I ran into some problems setting it as a string, so I put all of the usernames in an array and set to_many equal to that. It worked like a charm!