FlowMailSender
Handles the process of sending emails within the workflow with customizable options.
Properties
| Name | Description |
|---|---|
| Caption | The caption dictionary representing localized captions for the flow object. |
| ValueType | Specifies the type of the value used in the email process. |
| IsHtml | Determines whether the email content is in HTML format. |
| ResumeOnError | Indicates whether the email sending process should continue on error. (Deprecated) |
| Key | A unique identifier for the workflow step. |
| Name | Name for the workflow step. |
| TO | The list of primary recipients of the email. |
| Value | The dynamic value used during the email sending process. |
| ErrorDescriptionObjectName | Specifies the object name for error descriptions. (Deprecated) |
| Subject | The subject of the email. |
| FromAddress | The email address of the sender. |
| ReadNotification | Determines whether to enable read notifications for the email. |
| WorkflowCodeInstance | The workflow code instance associated with the flow object. |
| ErrorOptions | Defines error-related options for the API step. |
| CachedDMObjects | The cached document management objects related to the flow object. |
| Culture | Specifies the culture or language used in the email content. |
| DisplayName | The display name of the sender. |
| CC | The list of recipients to be copied on the email. |
| Message | The main content of the email to be sent. |
| Attachments | A list of attachments to include in the email. |
| TypeCode | The type code associated with the flow object. |
| BCC | The list of recipients to be blind-copied on the email. |
| ValueSourceType | Defines the source type of the value used in the email process. |
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| OnAfterExecution(sender, args) | Occurs after the execution of the workflow step. |
| OnBeforeExecution(sender, args) | Occurs before the execution of the workflow step. |