Click or drag to resize

IContentItemSendWorkFlowNotificationMail Method


Sends a workflow notification email to the given recipients.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
void SendWorkFlowNotificationMail(
	IWorkflow workflow,
	ITransition transition,
	IUser assignToUser,
	string emailRecipients,
	string comment
)

Parameters

workflow  IWorkflow
The workflow this page is currently on
transition  ITransition
The transition to be used to advance the page in workflow
assignToUser  IUser
The user this page will be assigend to after the given transition
emailRecipients  String
The email addresses of the recipients, delimited by semicolons.
comment  String
The comments user put in during workflow advancement
Remarks

The subject and body of workflow notification email are based on a predefined template located in the App_Data\xml\custom\emailNotifications folder.

The file name of the workflow notification email template is workflowNotifications.xml.

Modify this file to change the email content.

Example
Workflow notification email template default content. Note that the names between two percent characters ("%")are variables; these are case-sensitive.
XML
  <?xml version="1.0" encoding="utf-8" ?>
<EmailTemplate>
  <Subject>%siteName% - %workflowName% Notification - %pageName% - %pageId%</Subject>
  <Body>
    <p><strong>Workflow Notification</strong></p>
    <p><em><a href="mailto:%workingUserEmail%">%workingUserName%</a> </em>advanced the item <em><a href="%siteUrl%?ID=%pageId%">%pageName% (%pageId%)</a> </em>through the "<em>%transitionName%</em>" transition in the "<em>%workflowName%</em>" workflow, and assigned it to <em><a href="mailto:%nextUserEmail%">%nextUserName%</a></em></p>
    <p> </p>
    <p><strong>Comments from Assigning User:</strong>
    <br /><em>%comments%</em></p>
    <p> </p>
    <p><strong>View Item:</strong><br/><a href="%siteUrl%?ID=%pageId%">%siteUrl%?ID=%pageId%</a></p>
  </Body>
</EmailTemplate>
See Also