SendEmailActivity
Category: Common Steps Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: ActionActivity Module: FlowManagement.Domain
Overview
SendEmailActivity is a node used to send emails in a flow. Inheriting from ActionActivity, it supports sending emails via an SMTP server and can be configured to send asynchronously as a background job.
Configuration Instructions
Email Content
| Property Name | Type | Required | Default Value | Description |
|---|---|---|---|---|
| To | string | Yes | - | Recipient email address |
| Subject | string | Yes | - | Email subject |
| Body | string | Yes | - | Email body |
| IsBodyHtml | bool | No | false | Whether body is HTML |
| IsBackgroundJob | bool | No | false | Whether to send as background job |
SMTP Configuration
| Property Name | Type | Required | Default Value | Description |
|---|---|---|---|---|
| SmtpHost | string | No | - | SMTP server address |
| SmtpPort | int | No | 0 | SMTP port (e.g. 587, 465) |
| SmtpUserName | string | No | - | SMTP username |
| SmtpPassword | string | No | - | SMTP password (encrypted) |
| SmtpEnableSsl | bool | No | false | Whether to use SSL |
| FromAddress | string | No | - | Sender email address |
| FromDisplayName | string | No | - | Sender display name |
Usage Examples
{
"Type": "SendEmailActivity",
"Name": "Send Notification Email",
"Alias": "SendNotification",
"Subject": "Flow Execution Notification",
"Body": "Your flow has completed execution.",
"IsBodyHtml": false,
"SmtpHost": "smtp.example.com",
"SmtpPort": 587,
"SmtpEnableSsl": true
}
Notes
- 💡 Asynchronous sending with retry supported when IsBackgroundJob=true
- 💡 Uses system default IEmailSender when SMTP not configured
- ⚠️ Password stored encrypted
Related Nodes
- DingTalkNoticeActivity: DingTalk Notification Node
- WeChatNoticeActivity: WeChat Notification Node
Update History
| Date | Version | Description |
|---|---|---|
| 2025-11-28 | 1.0 | Initial version |
Last updated: 2025-11-28