The function Watch document in Sites Explorer allows users to receive notification by email when a document is updated. The email address of receivers is the email they declare in their profile. Administrators can customize the sender, subject, mimetype and content of the notification.
To customize the email notification, simply add the following properties in the file:
$PLATFORM_TOMCAT_HOME/gatein/conf/configuration.properties
(in Tomcat).
$PLATFORM_JBOSS_HOME/standalone/configuration/gatein/configuration.properties
(in JBoss).
# Email content for WatchDocumentService
gatein.ecms.watchdocument.sender=support@exoplatform.com
gatein.ecms.watchdocument.subject=Your watching document is changed
gatein.ecms.watchdocument.mimetype=text/html
gatein.ecms.watchdocument.content=<![CDATA[Dear $user_name,<br><br>The document $doc_name ($doc_title) has changed.<br>
<br>Please go to <a href="$doc_url">$doc_title</a> to see this change.<br><br>]]>
Details:
You can use four parameters below in the gatein.ecms.watchdocument.content
property:
$user_name: The full name of the receiver.
$doc_name: The name of the document.
$doc_title: The title of the document.
$doc_url: The link to view the document in Sites Explorer.
To get the email notification feature work, you need to configure Outgoing mail service first.
See also