I\'m using Alfresco 4.0 I need to send email notification to selected members or all the members if a calendar event is created.
I\'m a newbie.
Kindly help m
You can set a simple rule on "Sites/yoursite/calendar" folder that executes a javascript script which sends the email.
If you need something more complicated then you can use alfresco's "onCreateNode" policy and bind it to "ia:calendarEvent" type.
From the top of my head something like this:
...
this.onCreateNode = new JavaBehaviour(this, "onCreateNode", NotificationFrequency.TRANSACTION_COMMIT);
this.policyComponent.bindClassBehaviour(QName.createQName(
NamespaceService.ALFRESCO_URI, "onCreateNode"),
"ia:calendarEvent", this.onCreateNode);
...
...
...
public void onCreateNode(ChildAssociationRef childAssocRef)
{
//send email here
}