AnsweredAssumed Answered

How to add 'CC' and 'BCC' list in javascript mail executer

Question asked by chiranjeevi on Apr 27, 2009
Latest reply on Jul 9, 2013 by katarina.grujanac
Hi Friends,

   I have created a rule on update the document.

  I have added a javscript on created rule.

   below is my javascript.

var mail = actions.create("mail");
  mail.parameters.to = "abc@gmail.com"
  mail.parameters.subject = "Hello from JavaScript";
  mail.parameters.from = person.properties.email;
  mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/sample.ftl");
  mail.parameters.text = "Welcome";
  mail.execute(document);

  My problem is i have to add 'CC' and 'BCC' list also in the above javascript.

  I have tried with mail.parameters.cc and mail.parameters.bcc.  but, it's not working.

   is it possible in Alfresco?

   can any one help me in this issue?

   if possible which files i have to modify?

   Thanks in advance.

Outcomes