AnsweredAssumed Answered

Attach a document into an email

Question asked by mvicidomini on Oct 7, 2013
Latest reply on Feb 15, 2017 by iphost.zan
Hello all,

i would like to attach a document when it is uploaded to alfresco. I know that there is the default notification from the workflow but for internal reason my customers ask me to attach the original document into an email. I have writen a small script but i don't manage to attach the document does somebody has a solution thanks a lot.

var mail = actions.create("mail");
var docName =["name"];
var siteShortName = document.siteShortName;
//var mySite = getSite(shortName);
var prop =["nodeRef"] = "MY EMAIL";
mail.parameters.subject = "Ajout de document";
mail.parameters.from = "MY EMAIL";
mail.parameters.text = "Ajout du document " + docName + "Sur le site: "+siteShortName+" Projet : " ;