cancel
Showing results for 
Search instead for 
Did you mean: 

Email notification for new replies on any forum

bruno_borges
Champ in-the-making
Champ in-the-making
Is it possible to define that  Alfresco should notify subscribed users that some forum/discussion/thread has new replies?

[]'s
13 REPLIES 13

nitis
Champ in-the-making
Champ in-the-making
Hi,

Has anyone could send an email from Javascript without using a workflow ???

Thanks

tejaskanani2920
Champ in-the-making
Champ in-the-making
we can do it in following manner …

first create a simple space - ex. Test (not forum space). Then by clicking on 'start discussion' from more actions start a discussion.
So it will create forum space inside that space.
then create a rule on Test space.
- for All Items
- send email notification (select the user/group to whom you want to send mail notification)
- select proper option (inbound/outbound & update(alfresco3.1+ supported))

thats it so now onward it will send the mail to the appropriate user/groupd according to the selection of Type(inboud/outbound/update).

Please let me know if you have any question.

Thanks.

marcobusetto
Champ in-the-making
Champ in-the-making
First create a simple space, then by clicking on 'start discussion' from more actions start a discussion, then create a rule on Test space…
- for All Items
- send email notification (select the user/group to whom you want to send mail notification)
- select proper option (inbound/outbound & update(alfresco3.1+ supported))

I can confirm that this manner works. The problem is that you cannot send the notify only to the forum subscribers but "to the appropriate user/group according to the selection of type" that you must establish upstream.

_

thestorm
Champ in-the-making
Champ in-the-making
if you guys still need it, this snippet does your job:


if (document.type == "{http://www.alfresco.org/model/forum/1.0}post" || document.type == "{http://www.alfresco.org/model/forum/1.0}topic")
{
// create mail action
  var mail = actions.create("mail");
  mail.parameters.to = "sebastian.danninger@googlemail.com";
  mail.parameters.subject = "New Discussion Entry!!";
  mail.parameters.from = "alfresco@saicon-dls.com";
  mail.parameters.text = "new forum entry please check it!!!!";
  // execute action against a document  
  mail.execute(document);
}