Click or drag to resize

MailControllerSendMails Method

Sends an email to a number of receivers.

Namespace:  Omada.OE.AppLogic
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public void SendMails(
	IEnumerable<int> receiverIds,
	UserInfo sender,
	int mailTemplateId,
	int sourceObjectId,
	bool logMail
)

Parameters

receiverIds
Type: System.Collections.GenericIEnumerableInt32
Must contain user and/or group ids. If the collection is empty or it states only groups with no members the method does nothing. Users without an email address are skipped.
sender
Type: Omada.OE.ModelUserInfo
Sender of the email. If null the mail sender specified in the customer settings is used.
mailTemplateId
Type: SystemInt32
Id of mail template which subject and message is retrieved from.
sourceObjectId
Type: SystemInt32
Id of the source data object used to format the mail message and subject. The active user must have read access to the data object. The source data object must be of the same data object type which the stated mail template is defiend for.
logMail
Type: SystemBoolean
See Also