Skip to main content

FlowMailSender

Handles the process of sending emails within the workflow with customizable options.

Properties

NameDescription
KeyA unique identifier for the workflow step.
FromAddressThe email address of the sender.
WorkflowCodeInstanceThe workflow code instance associated with the flow object.
CachedDMObjectsThe cached document management objects related to the flow object.
TOThe list of primary recipients of the email.
TypeCodeThe type code associated with the flow object.
BCCThe list of recipients to be blind-copied on the email.
ValueTypeSpecifies the type of the value used in the email process.
ValueSourceTypeDefines the source type of the value used in the email process.
AttachmentsA list of attachments to include in the email.
ResumeOnErrorIndicates whether the email sending process should continue on error. (Deprecated)
ErrorDescriptionObjectNameSpecifies the object name for error descriptions. (Deprecated)
ErrorOptionsDefines error-related options for the API step.
NameName for the workflow step.
ValueThe dynamic value used during the email sending process.
DisplayNameThe display name of the sender.
MessageThe main content of the email to be sent.
IsHtmlDetermines whether the email content is in HTML format.
ReadNotificationDetermines whether to enable read notifications for the email.
CCThe list of recipients to be copied on the email.
CaptionThe caption dictionary representing localized captions for the flow object.
SubjectThe subject of the email.
CultureSpecifies the culture or language used in the email content.

Constructors

NameDescription
FlowMailSender(name, workflowData, workflowCodeInstance)Constructor for the FlowMailSender class. Initializes a new instance of the FlowMailSender class.
FlowMailSender(name, workflowData, workflowCodeInstance)Initializes a new instance of the FlowMailSender class.
FlowMailSender(name,workflowData,workflowCodeInstance)Initializes a new instance of the FlowMailSender class with a name, workflow data, and workflow code instance.

Methods

NameDescription
RemoveBCC(recipient)Removes a recipient from the BCC list of the email.
ClearCC()Clears all CC recipients from the email.
AddTO(recipient)Adds a primary recipient to the email.
AddRecipientCC(recipient)Adds a recipient to the CC list using recipient options.
AddCC(recipient)Adds a recipient to the CC (carbon copy) list of the email.
ClearBCC()Clears all BCC recipients from the email.
AddRecipientBCC(recipient)Adds a recipient to the BCC list using recipient options.
Initialize()Initializes the FlowMailSender with default configurations.
AddRecipientTO(recipient)Adds a recipient to the primary recipients list using recipient options.
ClearTO()Clears all primary recipients from the email.
AddAttachment(value, type)Adds an attachment to the email.
RemoveTO(recipient)Removes a primary recipient from the email.
AddBCC(recipient)Adds a recipient to the BCC (blind carbon copy) list of the email.
RemoveCC(recipient)Removes a recipient from the CC list of the email.
Send()Sends the email with the configured settings.

Events

NameDescription
OnBeforeExecution(sender, args)Occurs before the execution of the workflow step.
OnAfterExecution(sender, args)Occurs after the execution of the workflow step.

Generic Types

NameDescription
TPropertiesGeneric type of properties.