Loading
Salesforce now sends email only from verified domains. Read More
Automate Your Business Processes
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Send an Email from a Flow Example

          Send an Email from a Flow Example

          This example uses the Send Email action to send an email to a new contact. Your sales reps might forget to email new customers to welcome them, so you want to email the new contacts automatically with a flow.

          Required Editions

          View supported editions.
          User Permissions Needed
          To open, edit, create, activate or deactivate a flow using all flow types, elements, and features available in Flow Builder, including Einstein and Agentforce for Flow: Manage Flow
          To create a contact:
          • Read on Contact
          • Create on Contact
          Important
          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.
          Note
          Note If you're following along in an existing flow, make sure the Send Email action version is set to 1.0.1.

          View this video in a separate tab.

          Create the flow that sends an email to the new contact.

          1. Open the Flows list view.
            • From Setup, in the Quick Find box, enter Flows, and then select Flows.
            • From the Automation app, select the Flows tab.
            • From the Flows tab in any Lightning app, click the actions menu and select Open Flow.
          2. Create a record-triggered flow.
            • From the Automation app, click New | Triggered | Record-Triggered Flow.
            • From Setup, click New Flow | Triggered | Record-Triggered Flow.
          3. Configure the Start element.
            1. For Object, click Contact.
              Contact is selected because that's the type of record that triggers the flow when it's created.
            2. For Trigger the Flow When, select A record is created.
              A record is created is selected because we want the flow triggered each time a contact record is created.
            3. For Condition Requirements, select None.
              Condition requirements narrow down when to trigger the flow. For example, you can set a condition to trigger the flow only for new contacts that live in California. But for this example, because you want the flow triggered with every new contact, no conditions are needed.
            4. Use the default values for the other fields.
          4. Add and configure an Action element. The action element is used to send the email.
            1. Click Add element plus icon, and select Action.
              A list of available actions opens.
            2. In the search bar, enter Send Email, and then click Send Email.
              For more information about the Send Email action, see Flow Core Action: Send Email.
            3. For Label, enter Send New Contact Email and use the default API name, Send_New_Contact_Email.
            4. For Recipient Addresses, click Triggering Contact, and then click Email.
            5. Click Compose Email Content.
            6. For Subject, enter the text Welcome aboard!.
            7. For Body, enter the rich text Hello!. Then, to insert the Contact's First Name, click Insert a resource... | Triggering Contact | First Name.
            8. Enter the remaining email body content as Welcome to the family. Thank you for supporting our business. Sincerely, All of Us at Acme Corp.
            9. For the Rich-Text-Formatted Body value, click True.
            10. Use the default values for the other fields.
          5. Save and name the flow.
          6. To make sure that the flow works as expected, debug and test it by using different scenarios.
          7. To start sending emails, activate the flow.
            A record-triggered flow with a configured Send Email action

          The flow sends an email to contacts that are created.

          Important
          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 is crucial to avoid broken references and ensure that email delivery functions correctly.
           
          Loading
          Salesforce Help | Article