Skip to main content
Version: Next

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 NameTypeRequiredDefault ValueDescription
TostringYes-Recipient email address
SubjectstringYes-Email subject
BodystringYes-Email body
IsBodyHtmlboolNofalseWhether body is HTML
IsBackgroundJobboolNofalseWhether to send as background job

SMTP Configuration​

Property NameTypeRequiredDefault ValueDescription
SmtpHoststringNo-SMTP server address
SmtpPortintNo0SMTP port (e.g. 587, 465)
SmtpUserNamestringNo-SMTP username
SmtpPasswordstringNo-SMTP password (encrypted)
SmtpEnableSslboolNofalseWhether to use SSL
FromAddressstringNo-Sender email address
FromDisplayNamestringNo-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,
"SmtpUserName": "[email protected]",
"SmtpEnableSsl": true
}

Notes​

  • 💡 Asynchronous sending with retry supported when IsBackgroundJob=true
  • 💡 Uses system default IEmailSender when SMTP not configured
  • ⚠️ Password stored encrypted

Update History​

DateVersionDescription
2025-11-281.0Initial version

Last updated: 2025-11-28