Skip to main content

FlowMailSender

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

Properties

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

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

Events

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