---
schema_version: "1"
id: ab528a4bf362e01488163975722aca30e362787a1ffbf41f6df58735a5e10718
title: Send Email Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_actions_sendemail.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_sendemail.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 03bb0910373f2b6577c60ee89b795e2447199249f83c44390fe1d4ac1d1aba75
description: Use the Send Email action in Flow Builder to send emails to individual recipients, apply email templates, add attachments, and optionally log emails to related records' activity timelines. For bulk email to audience segments, use the Send Email Message element instead.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Send Email Action

Use the Send Email action in Flow Builder to send emails to individual recipients, apply email templates, add attachments, and optionally log emails to related records' activity timelines. For bulk email to audience segments, use the Send Email Message element instead.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)

Note If you’re a Marketing Cloud Growth user, use the [Send Email Message](https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_mktg_send_email_message.htm&release=264.0.0&type=5 "The Send Email Message action element sends an email from your Salesforce CMS to an audience segment. You can configure the action to track clicks and opens, send messages to your opt-in list only, and get help from Einstein for send-time optimization (STO) and identifying which clicks and opens are real.") element to send an email to your audience segment.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_important.png)

Important To send email from Salesforce, the Send Email action in Salesforce Flow requires domain-level and user-level email verification. Email delivery fails if either the user's email address or the email-sending domain is unverified. See [Requirements to Send Email from Salesforce](https://help.salesforce.com/s/articleView?id=xcloud.security_email_verification_requirements.htm&language=en_US&type=5).

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 email address in the Recipient Addresses, CC Addresses, BCC Addresses, or Recipient ID fields. For more information about setting up a Send Email action, see [Sending Emails from a Flow](https://help.salesforce.com/s/articleView?id=platform.flow_build_actions_email.htm&release=264.0.0&type=5 "Send emails to your customers, partners, and employees automatically in a flow. There are several different ways to send an email from a flow depending on who you want to send your email to and how you want your email content to look. Determine the best way to send your email based on the functionality that you need.").

**Configure Recipient Details**

To configure a recipient in your email flow, use these input parameters.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:24.509803921568626%">
          <col style="width:75.49019607843137%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d305819e106">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d305819e109">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d305819e106 ">
              <strong class="uicontrol">Recipient Addresses</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d305819e109 ">
              <p>Optional. A comma-delimited list or a collection of the recipients' email
                addresses. </p>
              <p>This parameter accepts single-value resources and collection variables
                of type string, and treats the value as a list of text values.</p>
              <p>If
                <strong class="uicontrol">Log Email on Send</strong> is <strong class="uicontrol">True</strong>, the
                flow logs the email to the ID that you specify for <strong class="uicontrol">Recipient
                  ID</strong>, not to the records associated with the email addresses in
                <strong class="uicontrol">Recipient Addresses</strong>.
              </p>
              <p>The maximum size for this
                field is 4,000 bytes.</p>
              <p>For flows that use Send Email Action version 1.0.1 and
                earlier, separate input fields for the address list and address collection are
                available.</p>
              <p style="margin-bottom:0;">You can enter values for <strong class="uicontrol">BCC Addresses</strong>,
                <strong class="uicontrol">CC Addresses</strong>, <strong class="uicontrol">Recipient ID</strong>, and
                <strong class="uicontrol">Recipient Addresses</strong> as long as the combined number of
                recipients is 150 or fewer.
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d305819e106 ">
              <strong class="uicontrol">CC Addresses</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d305819e109 ">
              <p>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.</p>
              <p>This
                parameter accepts single-value resources and collection variables of type string,
                and treats the value as a list of text values.</p>
              <p>The maximum size for this
                field is 4,000 bytes.</p>
              <p>For flows that use Send Email Action version 1.0.1 and
                earlier, separate input fields for the address list and address collection are
                available.</p>
              <p style="margin-bottom:0;">You can enter values for <strong class="uicontrol">BCC Addresses</strong>,
                <strong class="uicontrol">CC Addresses</strong>, <strong class="uicontrol">Recipient ID</strong>, and
                <strong class="uicontrol">Recipient Addresses</strong> as long as the combined number of
                recipients is 150 or fewer.
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d305819e106 ">
              <strong class="uicontrol">BCC Addresses</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d305819e109 ">
              <p>Optional. A comma-delimited list or collection of recipient email addresses to
                send a copy of the email to. Other recipients can't see BCC recipients.</p>
              <p>This
                parameter accepts single-value resources and collection variables of type string,
                and treats the value as a list of text values.</p>
              <p>The maximum size for this
                field is 4,000 bytes.</p>
              <p>For flows that use Send Email Action version 1.0.1 and
                earlier, separate input fields for the address list and address collection are
                available.</p>
              <p style="margin-bottom:0;">You can enter values for <strong class="uicontrol">BCC Addresses</strong>,
                <strong class="uicontrol">CC Addresses</strong>, <strong class="uicontrol">Recipient ID</strong>, and
                <strong class="uicontrol">Recipient Addresses</strong> as long as the combined number of
                recipients is 150 or fewer.
              </p>
            </td>

          </tr>
        </tbody>
      </table>

**Configure Sender Details**

To configure a sender in your email flow, use these input parameters.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_important.png)

Important If the Sender Type is **OrgWideEmailAddress**, make sure that the user running the flow has the profile configurations that the specific org-wide email address requires. If you proceed without the required configuration, the flow returns an error..

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:24.509803921568626%">
          <col style="width:75.49019607843137%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d305819e252">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d305819e255">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e252 ">
              <strong class="uicontrol">Sender Type</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e255 ">
              <p>Optional. The type of sender that sends the email. Valid values are:</p>
              <ul>
                <li>
                  <p><strong class="uicontrol">CurrentUser</strong>—the email address of the user running
                    the flow. This value is the default.</p>
                </li>

                <li>
                  <p><strong class="uicontrol">DefaultWorkflowUser</strong>—the email address of the default
                    workflow user.</p>
                </li>

                <li>
                  <p><strong class="uicontrol">OrgWideEmailAddress</strong>—the verified organization-wide email address that you
                    specify in <strong class="uicontrol">Sender Email Address</strong>. If the running flow
                    user is the unauthenticated guest user, (typically a flow that's launched from
                    an experience site), set the <strong class="uicontrol">Sender Email Address</strong> to a
                    verified organization-wide email. Salesforce blocks all emails sent from the
                    unauthenticated guest user that don't use a verified organization-wide email
                    address. </p>
                  <p>If you select <strong class="uicontrol">OrgWideEmailAddress</strong> for <strong class="uicontrol">Sender Type</strong>,
                    you can see a maximum of 500 email addresses in the list. To use an email
                    address that isn't listed, create a text resource with the org-wide email
                    address as the default value. Then select that resource for Sender Type.</p>
                </li>

              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e252 ">
              <strong class="uicontrol">Sender Email Address</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e255 ">
              <p>Optional. The organization-wide email address that’s used to send the email.
                Use this parameter only when you set the <strong class="uicontrol">Sender Type</strong> to
                <strong class="uicontrol">OrgWideEmailAddress</strong>. Set up the organization-wide email
                address before you enter it for this parameter. See <a href="https://help.salesforce.com/s/articleView?id=sales.orgwide_email.htm&amp;type=5&amp;language=en_US" target="_blank">Organization-Wide Email Address</a>.
              </p>
              <p>Required
                when:</p>
              <ul>
                <li>You set the <strong class="uicontrol">Sender Type</strong> to
                  <strong class="uicontrol">OrgWideEmailAddress</strong>
                </li>

                <li>The running flow user is the unauthenticated guest user</li>

              </ul>
              <p style="margin-bottom:0;">This parameter accepts a single-value resource of any type, and treats the
                value as text.</p>
            </td>

          </tr>
        </tbody>
      </table>

**Configure Email Content**

To configure the email content in your email flow, use these 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.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:24.509803921568626%">
          <col style="width:75.49019607843137%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d305819e372">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d305819e375">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Subject</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>The subject of the email. Required for flows that use Send Email Action version
                1.0.1 and <strong class="uicontrol">Compose Email Content</strong> option.</p>
              <p>Hidden for flows
                that use Send Email Action version 1.0.1 and <strong class="uicontrol">Use Email
                  Template</strong> selected.</p>
              <p>For flows that use Send Email Action
                version 1.0.0, this field is optional if you use an email template. The email
                template overrides the entry in this field. And, required if you don’t use an
                email template.</p>
              <p style="margin-bottom:0;">Enter text or select a single-value resource of any type
                that contains your content, for example, a Text Template resource. The flow treats
                the value as plain text.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Body</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>The body of the email. Required for flows that use Send Email Action version
                1.0.1 and <strong class="uicontrol">Compose Email Content</strong> option.</p>
              <p>Hidden for flows
                that use Send Email Action version 1.0.1 and <strong class="uicontrol">Use Email
                  Template</strong> selected.</p>
              <p>For flows that use Send Email Action
                version 1.0.0, this field is optional if you use an email template. The email
                template overrides the entry in this field. If you don't use an email template,
                this field is required.</p>
              <p>Enter text or select a single-value resource of any
                type that contains your content, for example, a Text Template resource.</p>
              <p style="margin-bottom:0;">If
                you don’t use an email template, the flow treats the value as plain text or rich
                text, depending on your selection in <strong class="uicontrol">Rich-Text-Formatted
                  Body</strong>. If you select <strong class="uicontrol">True</strong> for
                <strong class="uicontrol">Rich-Text-Formatted Body</strong>, the body of the email uses rich
                text.
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Rich-Text-Formatted Body</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>Optional. Indicates whether you want the resource specified for the
                <strong class="uicontrol">Body</strong> parameter to use rich text. Valid values are:
              </p>
              <ul>
                <li><strong class="uicontrol">True</strong>—use rich text for the email body.</li>

                <li><strong class="uicontrol">False</strong>—use plain text for the email body. This value is
                  the default.</li>

              </ul>
              <p style="margin-bottom:0;">Hidden for flows that use Send Email Action version 1.0.1 and <strong class="uicontrol">Use
                  Email Template</strong> selected.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Use Line Breaks</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>Optional. Indicates whether to render the line breaks in the
                rich-text-formatted body text template. Valid values are <strong class="uicontrol">True</strong>
                and <strong class="uicontrol">False</strong>. The default value is
                <strong class="uicontrol">False</strong>.
              </p>
              <p style="margin-bottom:0;">Hidden for flows that use Send Email Action
                version 1.0.1 and <strong class="uicontrol">Use Email Template</strong> selected.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Email Template ID</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>The ID of the Classic or Lightning email template to use for the email subject
                and body. Required for flows that use Send Email Action version 1.0.1 and
                <strong class="uicontrol">Use Email Template</strong> option.
              </p>
              <p>Optional for flows that use
                Send Email Action version 1.0.0. </p>
              <p>Hidden for flows that use Send Email
                Action version 1.0.1 and <strong class="uicontrol">Compose Email Content</strong>
                selected.</p>
              <p>If the email template has merge fields from an object other than
                the one associated with <strong class="uicontrol">Recipient ID</strong>, specify the record
                used to supply those merge fields in <strong class="uicontrol">Related Record ID</strong>.
              </p>
              <p>To use this parameter, specify the <strong class="uicontrol">Recipient
                  ID</strong>.</p>
              <p>You can use this parameter with <strong class="uicontrol">Log Email on
                  Send</strong>.</p>
              <p style="margin-bottom:0;">Using email templates in the Send Email action changes
                the API called by the action, which changes the daily email send limit to the
                <a href="https://help.salesforce.com/s/articleView?id=000381534&amp;type=1&amp;language=en_US" target="_blank">General Email Limit</a> instead of the <a href="https://help.salesforce.com/s/articleView?id=000382442&amp;type=1&amp;language=en_US" target="_blank">Daily Workflow Email Limit</a>.
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 "><strong class="uicontrol">Email Template Name</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>Optional. The name of the Classic or Lightning email template to use for the
                email subject and body. Available for flows that use Send Email Action Version 3.0.1
                and later when you select <strong class="uicontrol">Use Email Template</strong>.</p>
              <p>When
                deploying flows between environments, use Email Template Name instead of Email
                Template ID to preserve the reference to the selected email template and eliminate
                manual record updates.</p>
              <p>Including an Email Template Name requires the
                Recipient ID.</p>
              <p>If the email template has merge fields from an object other
                than the one associated with <strong class="uicontrol">Recipient ID</strong>, specify the
                record used to supply those merge fields in <strong class="uicontrol">Related Record
                  ID</strong>. </p>
              <p style="margin-bottom:0;">Using email templates in the Send Email action changes
                the API called by the action, which changes the daily email send limit to the
                <a href="https://help.salesforce.com/s/articleView?id=000381534&amp;type=1&amp;language=en_US" target="_blank">General Email Limit</a> instead of the <a href="https://help.salesforce.com/s/articleView?id=000382442&amp;type=1&amp;language=en_US" target="_blank">Daily Workflow Email Limit</a>.
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Attachment ID</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>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. </p>
              <p>This parameter accepts single-value resources of any type and treats
                the value as text.</p>
              <p>The attachment ID can be the ID of a Document, Content
                Version, or Attachment items.</p>
              <p style="margin-bottom:0;">Adding attachments with the Send Email action
                changes the API called by the action, which changes the daily email send limit to
                the <a href="https://help.salesforce.com/s/articleView?id=000381534&amp;type=1&amp;language=en_US" target="_blank">General Email Limit</a> instead of the <a href="https://help.salesforce.com/s/articleView?id=000382442&amp;type=1&amp;language=en_US" target="_blank">Daily Workflow Email Limit</a>.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 "><strong class="uicontrol">Attachment ID Collection</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>Optional. A collection of attachment IDs. Select a collection resource variable
                of text type that has a list of attachment IDs. </p>
              <p>The attachment ID can be the ID
                of a document, content version, or attachment item.</p>
              <p style="margin-bottom:0;">Adding attachments with
                the Send Email action changes the API called by the action, which changes the
                daily email send limit to the <a href="https://help.salesforce.com/s/articleView?id=000381534&amp;type=1&amp;language=en_US" target="_blank">General Email Limit</a> instead of the <a href="https://help.salesforce.com/s/articleView?id=000382442&amp;type=1&amp;language=en_US" target="_blank">Daily Workflow Email Limit</a>.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Recipient ID</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>The ID of a lead or a contact record.</p>
              <p>Required if you specify
                <strong class="uicontrol">Email Template ID</strong>.
              </p>
              <p>If you include <strong class="uicontrol">Log
                  Email on Send</strong>, this parameter is the ID of the person to send and
                log the email to. </p>
              <p>If you include <strong class="uicontrol">Email Template ID</strong>,
                this parameter is the ID of the person to send an email to and populate recipient
                merge fields with.</p>
              <p>If you specify <strong class="uicontrol">Recipient ID</strong>, also
                specify <strong class="uicontrol">Email Template ID</strong>, <strong class="uicontrol">Log Email On
                  Send</strong>, or <strong class="uicontrol">Attachments</strong>.</p>
              <p>If the ID entered
                in this parameter is a lead record, you can’t use <strong class="uicontrol">Related Record
                  ID</strong>.</p>
              <p>The maximum size for this field is 4,000 bytes.</p>
              <p style="margin-bottom:0;">You
                can enter values for <strong class="uicontrol">BCC Addresses</strong>, <strong class="uicontrol">CC
                  Addresses</strong>, <strong class="uicontrol">Recipient ID</strong>, and
                <strong class="uicontrol">Recipient Addresses</strong> as long as the combined number of
                recipients is 150 or fewer.
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Related Record ID</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>Optional. The ID of a non-recipient record. For example, it can be the ID of a
                case record. </p>
              <p>If you include <strong class="uicontrol">Log Email on Send</strong>, this
                parameter is the ID of a secondary record to log the email to. </p>
              <p>If you
                include <strong class="uicontrol">Email Template ID</strong>, this parameter is the ID of the
                non-recipient record used to populate email template merge fields.</p>
              <p style="margin-bottom:0;">If you
                enter a lead record ID for the <strong class="uicontrol">Recipient ID</strong>, then you can’t
                use this parameter.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Log Email on Send</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>Optional. Indicates whether to log the email on the specified records’ activity
                timelines and activity history. Valid values are: </p>
              <ul>
                <li><strong class="uicontrol">True</strong>—log the email to the record associated with
                  <strong class="uicontrol">Recipient ID</strong>, <strong class="uicontrol">Related Record ID</strong>,
                  or both.
                </li>

                <li><strong class="uicontrol">False</strong>—don’t log the email to a record. This value is
                  the default.</li>

              </ul>
              <p>Hidden until you provide a value in Recipient ID or Related Record
                ID.</p>
              <p>To log an email, specify a value for <strong class="uicontrol">Recipient
                  ID</strong>, <strong class="uicontrol">Related Record ID</strong>, or both.</p>
              <p>You can
                use this parameter with <strong class="uicontrol">Email Template ID</strong>.</p>
              <p>Logging
                emails with the Send Email action changes the API called by the action, which
                changes the daily email send limit to the <a href="https://help.salesforce.com/s/articleView?id=000381534&amp;type=1&amp;language=en_US" target="_blank">General Email Limit</a> instead of the <a href="https://help.salesforce.com/s/articleView?id=000382442&amp;type=1&amp;language=en_US" target="_blank">Daily Workflow Email Limit</a>.</p>
              <p style="margin-bottom:0;">To
                prevent recursive loops in flows triggered on the <span class="apiname">EmailMessage</span>
                object, turn off <strong class="uicontrol">Log Email on Send</strong> in asynchronous flow
                paths. Turning this option on creates a new email message record, which triggers
                the flow again.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Add Threading Token to Body</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>Optional.&nbsp;Indicates whether to create a unique token for the related record and
                add it to the email body. </p>
              <p>Hidden until you provide a value in Related Record
                ID.</p>
              <p>When the related record is a case record, Email-to-Case uses the token
                to link future email responses to that case.</p>
              <p>To link future email responses
                to other records, create an Apex Email Service and use the
                <code>EmailMessages.getRecordIdFromEmail</code> function to find the record
                that matches the token.
              </p>
              <p style="margin-bottom:0;">If you specify an <strong class="uicontrol">Email Template
                  ID</strong>, the flow doesn’t insert any token into the email body. Instead,
                <a href="https://help.salesforce.com/s/articleView?id=service.merge_fields_cases.htm&amp;type=5&amp;language=en_US" target="_blank">use merge fields with your template</a> to add
                field values in the email.
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e372 ">
              <strong class="uicontrol">Add Threading Token to Subject</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d305819e375 ">
              <p>Optional. Indicates whether to create a unique token for the related record and
                add it to the email subject. </p>
              <p>Hidden until you provide a value in Related Record
                ID.</p>
              <p>When the related record is a case record, Email-to-Case uses the token
                to link future email responses to that case.</p>
              <p>To link future email responses
                to other records, create an Apex Email Service and use the
                <code>EmailMessages.getRecordIdFromEmail</code> function to find the record
                that matches the token.
              </p>
              <p style="margin-bottom:0;">If you specify an <strong class="uicontrol">Email Template
                  ID</strong>, the flow doesn’t insert any token into the email subject.
                Instead, <a href="https://help.salesforce.com/s/articleView?id=service.merge_fields_cases.htm&amp;type=5&amp;language=en_US" target="_blank">use merge fields with your template</a> to add
                field values in the email.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Using a Send Email Action

To use a Send Email action in a flow, see [Sending Emails from a Flow](https://help.salesforce.com/s/articleView?id=platform.flow_build_actions_email.htm&release=264.0.0&type=5 "Send emails to your customers, partners, and employees automatically in a flow. There are several different ways to send an email from a flow depending on who you want to send your email to and how you want your email content to look. Determine the best way to send your email based on the functionality that you need.").

**Transaction and Email Deliverability Information**

At run time, the flow doesn’t send the email until the interview’s transaction completes. Transactions are complete when the interview either finishes or runs 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 by 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 `EmailMessage` record. For details, see [Experience Cloud User Licenses](https://help.salesforce.com/s/articleView?id=platform.users_license_types_communities.htm&language=en_US).
- The Send Email action doesn't send emails when you debug the flow in Rollback mode.
- The flow creates emails up to 35 MB, including attachments. If the size exceeds 35 MB, the flow fails at run time.
- To export a flow using API version 64.0 and earlier, change the Send Email action version to 1.0.1.
- To fix version change errors for recipient address fields, delete the warnings and repopulate the parameter.
- To export a flow using Send Email action version 2.0.1 and later, specify API version 65.0 or later in the sourceApiVersion field in the sfdx-project.json file.
- If a recipient email address field contains a variable that’s empty at run time or the recipient email address belongs to an inactive user, the flow returns a "Probably Limit Exceeded or 0 recipients" error. For resolution details, see [Knowledge Article: Error 'Probably Limit Exceeded or 0 recipients' in a Flow with a Send Email or Email Alert Action](https://help.salesforce.com/s/articleView?id=000384002&type=1&language=en_US).

## Using a Send Email Action in a Schedule-Triggered Flow

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](https://help.salesforce.com/s/articleView?id=000381534&type=1&language=en_US).
- If you don’t use **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](https://help.salesforce.com/s/articleView?id=000382442&type=1&language=en_US).
- 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 by 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 email template or attachment record IDs in the Send Email action become invalid.

After migration, manually update the flow to reference the newly created email template or attachment IDs in the target org.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_important.png)

Important After migrating flows, always review and reconfigure the Send Email action to reference the new record IDs in the target Salesforce org. This step prevents broken references and makes sure that email delivery functions correctly after migration.

#### See Also

- [Add and Edit Elements](https://help.salesforce.com/s/articleView?id=platform.flow_build_elements.htm&release=264.0.0&type=5 "Use elements to define actions that the flow can run. When they’re on the canvas, connect them to create the order in which they run.")
- [Sending Emails from a Flow](https://help.salesforce.com/s/articleView?id=platform.flow_build_actions_email.htm&release=264.0.0&type=5 "Send emails to your customers, partners, and employees automatically in a flow. There are several different ways to send an email from a flow depending on who you want to send your email to and how you want your email content to look. Determine the best way to send your email based on the functionality that you need.")
- [Text Template Flow Resource](https://help.salesforce.com/s/articleView?id=platform.flow_ref_resources_texttemplate.htm&release=264.0.0&type=5 "Store text that can be changed and used throughout the flow.")
- [Customize What Happens When a Flow Fails](https://help.salesforce.com/s/articleView?id=platform.flow_build_logic_fault.htm&release=264.0.0&type=5 "Learn how fault paths customize what happens when a flow fails. Choose how to notify admins, guide users, and take a follow-up action.")
- [Move and Connect Elements to Change a Flow Route](https://help.salesforce.com/s/articleView?id=platform.flow_build_logic_route_add.htm&release=264.0.0&type=5 "Identify which elements the flow runs and in what order by connecting the elements on your canvas together. To change the run order, move elements and add or remove connectors.")
- [Process Automation Settings](https://help.salesforce.com/s/articleView?id=platform.automation_about_settings.htm&release=264.0.0&type=5 "Salesforce provides various settings for platform automation to help customize and streamline business processes.")