Wednesday, March 9, 2011

Oracle WebCenter Interaction: Customizing Collab Subscription Emails

Changing the subscription emails from Collab is super simple and can go a long way in getting users to actually read the emails.  I'll admit that after a few years of getting them I've learned to tune out the content once I open a subscription email and see the standard heading it has.
By removing the top table and doing some reformatting the emails can look just like any other email and, fingers crossed, maybe more folks will read them!

The email templates are located in \bea\alui\ptimages\imageserver\plumtree\collab\templates.
The discussion board message post template is called: DiscussionPostNotification.nst

Here is how our discussion board message post emails now look:





This is the code that makes that happen:
## Collaboration Server Notification Template
## Type: Discussion Post
## Channel: Email - HTML

## content type
#set( $contentType = "text/html" )

## sets the subject line for the email
#set( $cns_subject = "$projectName Discussion Board Post" )

## Body Start
#parse ("/plumtree/collab/templates/header.inc")

<table width="100%" border="0" cellspacing="5" cellpadding="3">
   <tr>
      <td class="customappText"><b>${rootMessageName}</b><br><i>${messageAuthorName}</i><br><div>${messageBody}</div></td>
   </tr>
   <tr>
       <td class="actionbarDirBtn"><A href="${messageReplyURL}"><img src="$imageServer/plumtree/collab/private/img/actionMsgReply20.gif" align="absmiddle" border="0"><span class="actionbarText">Reply</span>&nbsp;&nbsp;</a></td>   
    </tr>
   <tr><td height="100">&nbsp;</td></tr>
</table>

<hr width="100%">
<table width="100%" border="0" cellspacing="5" cellpadding="3" >
   <tr>
      <td class="customappText">Workspace: <A href="${projectOverviewURL}">${projectName}</a>
      <br>Discussion Board: <A href="${rootMessageURL}">${discussionName}</a><br>${messageCreatedDate}</td>
   </tr>
   <tr>
      <td class="customappText">Why am I receiving this email?<BR>You are subscribed for email notification when new messages are posted to the ${projectName} discussion boards.</td>
   </tr>
   #parse ("/plumtree/collab/templates/attachment.inc")
</table>

#parse ("/plumtree/collab/templates/footer.inc")


One final tip - if you get annoyed with all of the subscription emails for deletions, just DELETE the .nst files associated with content deletion! Problem solved! (yes, your log file might grow faster with error messages about the missing file, but that is better than the annoyance of these emails!!!)

1 comment:

  1. The post describe change in subscription email from Collab is very simple and fantastic method. The code for doing the same is given. You can easily understand the code and logic. This method is very useful.
    sap ecc 7.0

    ReplyDelete