01-27-2012 04:14 AM
var mail = actions.create("mail");
mail.parameters.to = "davidc@alfresco.com";
mail.parameters.subject = "Hello from JavaScript";
mail.parameters.from = "davidc@alfresco.com";
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
mail.execute(doc);
mail.parameters.to = "davidc@alfresco.com; test@alfresco.com";
02-22-2012 07:00 PM
03-02-2012 06:56 AM
Hi Ben,
I know you asked that question a while ago and I guess you found the answer to it, but for anyone else wondering the same here is the answer.
There's another parameter for the "mail" function that hold various recipients and it's an alternative to the "to" parameter. It's the to_many parameter.
The value passed to that parameter can be a group or an array of person objects.
Hope this helps,
Adei
03-02-2012 07:17 AM
01-23-2013 04:04 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.