AnsweredAssumed Answered

Send E-mail from custom dashlet

Question asked by sokolko on Aug 2, 2012
Latest reply on Aug 6, 2012 by sokolko
Hello all!
I'm developing a custom dashlet for alfresco share and in some point I want to send an e-mail from my javascript code (for example, from my dashlet "OnReady" function), so I tried using the solution that worked fine in workflow definition:
onReady: function MyDashlet_onReady()
         var mail = actions.create("mail");
 = "sokolko@*****.ru";
          mail.parameters.from = "sokolko@*****.ru";
         mail.parameters.subject = "Alfresco";
         mail.parameters.text = "TEST";

But it doesn't work. JS console says "actions" is not defined. Does anyone know how can e-mail be sent in the correct way?