The following is an example of the e-mail template file mentioned in step 8 of Adding Custom Alert Messages to Gears above. The e-mail template file, whose name is specified in the resource bundle created in Step 7, is used by the DPS targeted e-mail system to create, format, and send e-mail alerts. This file should be placed in a directory in the DOCPATH.

This page fragment will be passed a parameter called alertMsg, which contains the message bean for this event.

<!-- Title: Document Updated Alert Notification -->

<setvalue param="messageFrom" value="no-one@example.com">
<setvalue param="messageSubject" value="Alert Notification">
<setvalue param="messageReplyTo" value="no-one@example.com">
<setvalue param="mailingName" value="Alert Notification">

<p>The document named <valueof param="alertMsg.documentName">unknown</valueof> has
been created by <valueof param="alertMsg.authorName">unknown</valueof> on <valueof
param="alertMsg.creationDate">unknown</valueof>

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices