cancel
Showing results for 
Search instead for 
Did you mean: 

How to send more than one mail with Mail Task

matteo_zanardo
Champ on-the-rise
Champ on-the-rise

As you can guess from the title I wanted to know how to send more mail with a single mail Task (at different addresses, the same mail to more people)

1 ACCEPTED ANSWER

bassam_al-saror
Star Collaborator
Star Collaborator

Did you try to split by commas ',' check out the docs 

Activiti User Guide 

View answer in original post

2 REPLIES 2

bassam_al-saror
Star Collaborator
Star Collaborator

Did you try to split by commas ',' check out the docs 

Activiti User Guide 

vikash_patel
Star Contributor
Star Contributor

Hi Matteo Zanardo,

As Bassam Al-Sarori‌ explained,

<activiti:field name="to" expression="${recipient}" />

you need to change the to field for multiple users and pass the values accordingly.


Activiti User Guide 

You can also send emails manually using script tasks by javascript api
execute | Alfresco Documentation 


There is one parameter 

mail.parameters.to = "*****@****.com";   
or
mail.parameters.to_many = ['****@****.com','****@****.com'];   

if you wants to send emails in multiple then pass the values in array

Thanks,

Vikash