I want alfresco to send email to site members when a new discussion thread is added to the site. I have gone through some help material for email notification generation including alfresco share discussion notification.
I have created a JS file with mail action code, have created discussion email template as well. But I have some confusion (actually lack of knowledge). When/how this JS would be called? How would alfresco know that it has to execute newly created JS file's code. Please explain this point.