IPageSendGroupNotificationMail Method Ingeniux CMS Content Store API

Sends out a Workflow notification email to all Users of a given Group.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

void SendGroupNotificationMail(
	IUserGroup group,
	IUser assignToUser,
	string comment,
	IWorkflow workflow,
	ITransition transition
)

Parameters

group
Type: Ingeniux.CMSIUserGroup
The group to send email to. All users with valid email addresses in this group will receive the email.
assignToUser
Type: Ingeniux.CMSIUser
The user this page will be assigend to after the given Transition
comment
Type: SystemString
The comments the user put in during workflow advancement
workflow
Type: Ingeniux.CMSIWorkflow
The workflow this page is currently on
transition
Type: Ingeniux.CMSITransition
The transition to be used to advance the page in workflow
Remarks

This method will not send out emails if the SendWorkFlowNotificationMail setting is false.

The subject and body of the 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.

Examples

Workflow notification email template default content. Note that the names between two percent characters ("%")are variables; these are case-sensitive.
  <?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

Reference