AnsweredAssumed Answered

Webscript to send Email notifications

Question asked by anwar501pasha on Sep 2, 2009
Latest reply on Apr 7, 2015 by malliswar
Hi All,

I Have a business requirement where I need to send Email Notification along witht he Email templates.

I have a JavaScript code using which i was able to send the mails from the Workflow using the code below.

                                                                              var mail = actions.create("mail");
       = emailAddress;
                mail.parameters.subject = "Please review this task" + bpm_workflowDescription;
                mail.parameters.from =;
                var mailSubject = mail.parameters.subject;
                logger.log("mailSubject: " + mailSubject);
                mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/notify_user_email.ftl");
                var mailMatter = mail.parameters.text;
                mail.parameters.text = "sdffdsfsdf";

How can I use the same code in webscripts to send email.

please help me

Thanks & Regards,