---
schema_version: "1"
id: 498bafcd4e514512480715e99c2bcde4ec6ce06888948c81cfa45df2d114009e
title: Agentforce Platform | Send Email with Verification Code
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/copilot_actions_ref_send_email_verification_code.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.copilot_actions_ref_send_email_verification_code.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b8f67ca9a071dfad532bcb6c079a3b517d426edaffaac14c9586468af773eaf7
description: Send a verification code to the customer’s email to verify their identity. The action requires the customer’s username or email as input. If the provided email is valid, a verification code is sent to the customer.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Agentforce Platform | Send Email with Verification Code

Send a verification code to the customer’s email to verify their identity. The action requires the customer’s username or email as input. If the provided email is valid, a verification code is sent to the customer.

### 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;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with Foundations, or <strong>Agentforce 1</strong> or <strong>Einstein 1</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" id="d107466e77">User Permissions Needed</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d107466e80">&nbsp;</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d107466e77 d107466e80 ">See <a href="https://help.salesforce.com/s/articleView?id=ai.agent_actions_common_perms.htm&amp;type=5&amp;language=en_US" target="_blank">Common User Access for Standard Agent
              Actions</a>.</td>

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

## Action Details

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:50%"> <col style="width:50%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">API Name</td><td class="slds-cell-wrap" style="vertical-align:top;">SendAuthenticationEmail</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Reference Action Type</td><td class="slds-cell-wrap" style="vertical-align:top;">Flow</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Reference Action</td><td class="slds-cell-wrap" style="vertical-align:top;">Send Verification Code</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Does this action execute one or more prompt templates?</td><td class="slds-cell-wrap" style="vertical-align:top;">No</td></tr></tbody></table>

## Considerations and Guidelines

If the verification code isn’t received, confirm that the email address or username is correct and retry the process. The one-time passcode (OTP) remains valid for 5 minutes. If the code isn’t received within this period, initiate a new request.

To use this action with the [Verify Customer](https://help.salesforce.com/s/articleView?id=ai.copilot_actions_ref_verify_customer.htm&release=264.0.0&type=5 "Verifies the customer’s identity based on the one-time passcode (OTP) generated and emailed by the Send Email with Verification Code action. When a user initiates verification, the system indicates that a verification code will be sent if the provided email or username is valid, and prompts the user to enter the code. If the user verification is successful, it outputs the verified user or contact ID, which can be used in filters and as input to other actions. If the verification is unsuccessful, it prompts the user to retry.") action, map the outputs of the Send Email with Verification Code action to variables. Then assign the variables to the corresponding Verify Customer action inputs. Learn more in [Control Access to Subagents and Actions with the Customer Verification Subagent](https://help.salesforce.com/s/articleView?id=service.service_agentforce_customer_verification.htm&type=5&language=en_US).