You are here:
Send Email Action
Send and optionally log an email to specified records by specifying the email content and recipients in a flow.
Required Editions
| View supported editions. |
In Flow Builder, search for Send Email in the element menu, and select Send Email.
Set Input Values
To set the inputs for the email, use values from earlier in the flow. Specify at least one recipient for the email. For more information about setting up a Send Email action see Sending Emails from a Flow.
Configure Recipient Details
To configure a recipient in your email flow, use the following input parameters.
| Input Parameter | Description |
|---|---|
| Recipient Addresses | Optional. A comma-delimited list or a collection of the recipients' email addresses. This parameter accepts single-value resources and collection variables of type string. The value is treated as list of text values. If Log Email on Send is set to True, the email is logged to the ID specified for Recipient ID, not to the records associated with the email addresses in Recipient Address List The maximum size for this field is 4,000 bytes. For flows using Send Email Action version 1.0.1 and earlier, separate input fields for the address list and address collection are available. You can enter values for BCC Addresses, CC Addresses, Recipient ID, and Recipient Addresses as long as the combined number of recipients is 150 or fewer. |
| CC Addresses | Optional. A comma-delimited list or a collection of recipient email addresses to send a copy of the email to. CC recipients are visible to all recipients. This parameter accepts single-value resources and collection variables of type string. The value is treated as list of text values. The maximum size for this field is 4,000 bytes. For flows using Send Email Action version 1.0.1 and earlier, separate input fields for the address list and address collection are available. You can enter values for BCC Addresses, CC Addresses, Recipient ID, and Recipient Addresses as long as the combined number of recipients is 150 or fewer. |
| BCC Addresses | Optional. A comma-delimited list or a collection of recipient email addresses to send a copy of the email to. BCC recipients are hidden from other recipients. This parameter accepts single-value resources and collection variables of type string. The value is treated as list of text values. The maximum size for this field is 4,000 bytes. For flows using Send Email Action version 1.0.1 and earlier, separate input fields for the address list and address collection are available. You can enter values for BCC Addresses, CC Addresses, Recipient ID, and Recipient Addresses as long as the combined number of recipients is 150 or fewer. |
Configure Sender Details
To configure a sender in your email flow, use the following input parameters.
| Input Parameter | Description |
|---|---|
| Sender Type | Optional. The type of sender that the email is sent from. Valid values are:
|
| Sender Email Address | Optional. The organization-wide email address that’s used to send the email.
Use this parameter only when Required when:
This parameter accepts a single-value resource of any type. The value is treated as text. |
Configure Email Content
To configure the email content in your email flow, use the following input parameters.
To create your email content, use the Compose Email Content option under Configure Email Content.
To use an existing email template, use the Use Email Template option under Configure Email Content.
| Input Parameter | Description |
|---|---|
| Subject | The subject of the email. Required for flows using Send Email Action version 1.0.1 and Compose Email Content option. Hidden for flows using Send Email Action version 1.0.1 and Use Email Template selected. For flows using Send Email Action version 1.0.0, this field is optional if you’re using an email template. The email template overrides the entry in this field. And, required if you’re not using an email template. Enter text or select a single-value resource of any type that contains your content, for example, a Text Template resource. The value is treated as plain text. |
| Body | The body of the email. Required for flows using Send Email Action version 1.0.1 and Compose Email Content option. Hidden for flows using Send Email Action version 1.0.1 and Use Email Template selected. For flows using Send Email Action version 1.0.0, this field is optional if you’re using an email template. The email template overrides the entry in this field. And, required if you’re not using an email template. Enter text or select a single-value resource of any type that contains your content, for example, a Text Template resource. If you're not using an email template,
the value can be treated as plain text or rich text, depending on your selection
in Rich-Text-Formatted Body If you select
True for |
| Rich-Text-Formatted Body | Optional. Indicates whether you want the resource specified for the Body parameter to use rich text. Valid values are:
Hidden for flows using Send Email Action version 1.0.1 and Use Email Template selected. |
| Use Line Breaks | Optional. Indicates whether to render the line breaks in the
rich-text-formatted body text template. Valid values are Hidden for flows using Send Email Action version 1.0.1 and Use Email Template selected. |
| Email Template ID | The ID of the Classic or Lightning email template to use for the email subject and body. Required for flows using Send Email Action version 1.0.1 and Use Email Template option. Optional for flows using Send Email Action version 1.0.0. Hidden for flows using Send Email Action version 1.0.1 and Compose Email Content selected. If the email template has merge fields from an object other than the one associated with Recipient ID, specify the record used to supply those merge fields in Related Record ID. If you’re using this parameter, Recipient ID is required. This parameter can be used with Log Email on Send. Using email templates in the Send Email action changes the API called by the action, which changes the daily email send limit to the General Email Limit instead of the Daily Workflow Email Limit. |
| Attachment ID | Optional. A comma-delimited list of attachment IDs in the email. Enter a value or select a single-value resource of string type that contains the list of attachments. This parameter accepts single-value resources of any type. The value is treated as text. The attachment ID can be the ID of a Document, Content Version, or Attachment items. Adding attachments with the Send Email action changes the API called by the action, which changes the daily email send limit to the General Email Limit instead of the Daily Workflow Email Limit. |
| Attachment ID Collection | Optional. A collection of attachment IDs. Select a collection resource variable of text type that has a list of attachment IDs. The attachment ID can be the ID of a document, content version, or attachment item. Adding attachments with the Send Email action changes the API called by the action, which changes the daily email send limit to the General Email Limit instead of the Daily Workflow Email Limit. |
| Recipient ID | The ID of a lead or a contact record. Required if Email Template ID is specified. If Log Email on Send is included, this parameter is the ID of the person to send and log the email to. If Email Template ID is included, this parameter is the ID of the person to send an email to and populate recipient merge fields with. If the ID entered in this parameter is a lead record, you can’t use Related Record ID. The maximum size for this field is 4,000 bytes. You can enter values for BCC Addresses, CC Addresses, Recipient ID, and Recipient Addresses as long as the combined number of recipients is 150 or fewer. |
| Related Record ID | Optional. The ID of a non-recipient record. For example, it could be the ID of a case record. If Log Email on Send is included, this parameter is the ID of a secondary record to log the email to. If Email Template ID is included, this parameter is the ID of the non-recipient record used to populate email template merge fields. You can’t use this parameter if the ID entered in Recipient ID is a lead record. |
| Log Email on Send | Optional. Indicates whether to log the email on the specified records’ activity timelines and activity history. Valid values are:
Hidden until a value is provided in Recipient ID or Related Record ID. To log an email, you must specify a value for Recipient ID, Related Record ID, or both. This parameter can be used with Email Template ID. Logging emails with the Send Email action changes the API called by the action, which changes the daily email send limit to the General Email Limit instead of the Daily Workflow Email Limit. To prevent recursive loops in flows triggered on the EmailMessage object, disable Log Email on Send in asynchronous flow paths. Enabling this option creates a new email message record, which triggers the flow again. |
| Add Threading Token to Body | Optional. Indicates whether to create a unique token for the related record and add it to the email body. Hidden until a value is provided in Related Record ID. When the related record is a case record, Email-to-Case uses the token to link future email responses to that case. To link future email responses
to other records, create an Apex Email Service and use the
If a Template ID is defined, no token is inserted into the email body. Instead, use merge fields with your template to populate data. |
| Add Threading Token to Subject | Optional. Indicates whether to create a unique token for the related record and add it to the email subject. Hidden until a value is provided in Related Record ID. When the related record is a case record, Email-to-Case uses the token to link future email responses to that case. To link future email responses
to other records, create an Apex Email Service and use the
If a Template ID is defined, no token is inserted into the email subject. Instead, use merge fields with your template to populate data. |
Using a Send Email Action
To use a Send Email action in a flow, see Sending Emails from a Flow.
Transaction and Email Deliverability Information
At run time, the email isn’t sent until the interview’s transaction completes. Transactions are complete when the interview either finishes or executes a Screen, Local Action, or Wait element. Before activating your flow, confirm that your org can send email in Setup | Deliverability | Access to Send Email (All Email Services) | All email.
- If you set Email Deliverability to No Access and you don't set Email Template ID or Log Email on Send fields, the flow runs but doesn't send the email.
- If you set Email Deliverability to No Access and you set Email Template ID or Log Email on Send fields, the flow returns an error when it sends the email.
Considerations
- Emails sent using the Send Email action don't include email signatures from My Email Settings. To include a signature, add one to the email template, flow text template, or other resource used in the Send Email action.
- If the Related Record ID is set as a Case ID by the flow,
Customer Community users can't create an
EmailMessagerecord. For details, see Experience Cloud User Licenses. - The Send Email action doesn't send emails when you debug the flow in Rollback mode.
- The maximum size of the email created, including attachments, is 35 MB. The flow fails during run time if the size is more than 35 MB.
- To export a flow using an API version lower than 65.0, change the Send Email action version to 1.0.1. To fix version change errors related to the recipient address fields, delete the warnings and repopulate the parameter.
Setup Configurations for Scheduled Flows
If you use the Send Email action element in a Scheduled-Triggered flow, configure the organization-wide email address in Setup.
- Set the organization-wide email address in Setup | Email | Organization-Wide Email Addresses.
- Add the organization-wide email address in Setup | Process Automation Settings | Automated Process User Email Address.
Email Sending Limits
- If you use Log Email on Send or Email Template ID, the daily email send limit is based on the single email limit. See General Email Limits.
- If you're not using Log Email on Send or Email Template ID, the daily email send limit is based on the daily workflow email limit. See Proactive Alert Monitoring: Daily Workflow Email Limit.
- Each licensed org can send single emails to a maximum of 5,000 external email addresses, or recipients, per day. A day is based on Greenwich Mean Time (GMT).
- Sending emails to internal email recipients doesn't count toward the org daily limit.
Handling IDs During Flow Migration
When you configure a Send Email action in a flow, you reference records such as email templates and attachments using their unique record IDs. These IDs are specific to the Salesforce org where they're created.
When you migrate flows from one org to another, such as from a sandbox to production or between different environments, the record IDs of these assets change. As a result, any references to the original template or attachment record IDs in the Send Email action become invalid.
After migration, you must manually update the flow to reference the newly created template or attachment IDs in the target org.

