As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
// create mail action 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);