This sample script demonstrates how to send an email.

Applicability

This functionality is available anywhere users can write C# code.

Code Sample

Passing the email address of the starter user:

// Set subject, body & recipient
//
var subject = "The subject of the email";
var body = "The body of the email";
var isAsync = true; // Set to true to send the email asynchronously
var recipient = bpmAppService.BPMSServices.MercuryService.StarterUser.Email;
//
// Send the email
//
bpmAppService.BPMSServices.NotificationService.Send(subject, body, NotificationAgent.Email, isAsync, recipient);