Loading
Prepare for Email to Become the Default Login ExperienceRead More
Secure Your Salesforce Org
Verify Email Addresses with Async Email

Verify Email Addresses with Async Email

Send email messages to internal and external users to ensure they’re registered with a valid email address that they own. Async email messages contain a verification link (URL). Users simply click the link to verify their email address. After verifying their email address, external users can log in with one-time password (OTP) via email (passwordless login).

Required Editions

Available in: both Salesforce Classic and Lightning Experience
Available in: Essentials, Performance, Unlimited, Enterprise, Developer, Professional, and Group Editions
User Permissions Needed
To configure email deliverability: Customize Application
To create, customize, or publish a community: Create and Set Up Communities AND View Setup and Configuration
  1. Use the Apex method asyncEmailConfirmation to send a verification link in an email message.
    Here's an example.
    System.UserManagement.sendAsyncEmailConfirmation('005RM000001a0Ox', '00XRM000000hxnG', '0DBRM000000015i', '/s/contactsupport');
  2. Optional. Customize the async email template.
    1. From Setup, use the Quick Find box to find and select Classic Email Templates.
    2. Next to Communities: User Verification Email, click Edit.
    3. To personalize your email content, edit the text in the email body. Use the available merge fields listed at the top of the page.
      To find verification-specific fields, select Network Member Fields as the field type.
  3. Optional. For more flexibility, create a custom async email message that includes a verification link.
    To insert a verification link, use the $Network AsyncVerificationLink field.
  4. Optional. Create a list view that tracks certain verification fields, such as whether users have verified their email addresses and phone numbers.
    1. From Setup, use the Quick Find box to find and select Users.
    2. Click Create New View and select these verification-specific fields.
    • Admin Trusted Mobile Number
    • One-Time Password App
    • Salesforce Authenticator
    • Temporary Code
    • U2F Security Key
    • User Verified Email
    • User Verified Mobile Number
 
Loading
Salesforce Help | Article