mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
51903 to 54309 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// create mail action
|
||||
var mail = actions.create("mail");
|
||||
mail.parameters.to = "davidc@alfresco.com";
|
||||
mail.parameters.subject = "Hello from JavaScript";
|
||||
mail.parameters.from = "david.caruana@alfresco.org";
|
||||
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 passed in node
|
||||
mail.execute(doc);
|
||||
|
||||
// return
|
||||
true;
|
Reference in New Issue
Block a user