Click or drag to resize

MailTemplateControllerFormatSubject Method (MailTemplate, MailReceiver, DataObject, EventActionContext, Transition, EventDefinition, SqlConnection, SqlTransaction)

Formats the mail subject to a specific receiver based on a template.

Namespace:  Omada.OE.AppLogic
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public static string FormatSubject(
	MailTemplate template,
	MailReceiver mailReceiver,
	DataObject source,
	EventActionContext context,
	Transition transition,
	EventDefinition eventDef,
	SqlConnection dbConnection,
	SqlTransaction dbTransaction
)

Parameters

template
Type: Omada.OE.ModelMailTemplate
The mail template
mailReceiver
Type: Omada.OE.ModelMailReceiver
Mail receiver.
source
Type: Omada.OE.ModelDataObject
Used as the source of the mail variabels.
context
Type: Omada.OE.ModelEventActionContext
transition
Type: Omada.OE.ModelTransition
Contains the (optional) transition which was activated and thereby caused the mail. A number of additional variables are then supported. Can be null.
eventDef
Type: Omada.OE.ModelEventDefinition
The (optional) event(definition) which caused the mail. Can be null.
dbConnection
Type: System.Data.SqlClientSqlConnection
dbTransaction
Type: System.Data.SqlClientSqlTransaction

Return Value

Type: String
The formatted subject.
See Also