Skip to content

Instantly share code, notes, and snippets.

@korutx
Created February 26, 2018 17:27
Show Gist options
  • Save korutx/993a2c5e83085ce6cf8c1ff5932a7194 to your computer and use it in GitHub Desktop.
Save korutx/993a2c5e83085ce6cf8c1ff5932a7194 to your computer and use it in GitHub Desktop.
Test Alfresco Mail
var mail = actions.create('mail');
mail.parameters.from = "alfresco@mail.com";
mail.parameters.to = 'somemail@mail.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";
mail.execute(companyhome);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment