daily pastebin goal
78%
SHARE
TWEET

Untitled

a guest Nov 15th, 2017 17 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var document1=search.findNode("workspace://SpacesStore/ade73c20-a303-48ad-9ed5-4ce35e98ae61");
  2. var document =search.findNode("workspace://SpacesStore/d60e88f5-517e-4b32-bb3f-b7838bf3ac20");
  3. var mail = actions.create("mail");
  4. mail.parameters.to = "smowais@taashee.com.com";
  5. mail.parameters.subject = "Email with attachments";
  6. mail.parameters.from = "alfresco.taashee@gmail.com";
  7. mail.parameters.text = "This is my first email with attachments";
  8. var array = [];
  9. array.push(document.nodeRef);
  10. array.push(document1.nodeRef);
  11. mail.parameters.attachment = array;
  12. mail.execute(document);
RAW Paste Data
Top