You can customize the email that you send to external users to verify their identity with a one-time password (OTP). The email includes a verification code that users enter to prove their identity. Control how you communicate with your customers and partners by rewording the email that comes with the verification code.
Required Editions
| Available in: Experience Builder sites |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions |
| User Permissions Needed | |
|---|---|
| To customize or publish an Experience Cloud site: |
|
Salesforce sends out an email with an OTP for email verifications in these scenarios.
- Headful passwordless login—Set up a login page for your Experience Cloud site that allows users to log in with their email address. You create a passwordless login page from your site’s Login & Registration page. See Brand Your Identity Experience.
- Headless passwordless login—Allow users to log in to your off-platform app with an email address or phone number.
Salesforce also sends an email with a one-time password for device activation email verifications. To customize this notification, see Device Activation Email Template.
The one-time password email template is available to Experience Builder sites as of Winter ’19.
- From Setup, enter All in the Quick Find box, and select All Experiences. Next to your site, click Workspaces.
- Select Administration, and then select Emails.
-
Under Email Templates, click
next to One-Time Password, and select
Experience Cloud: One-Time Password Email.
-
Click Save.
Your site is set up to send verification code notifications to users.
-
To customize the notification, edit the email template.
- From Setup, enter Email Templates in the Quick Find box, and select Classic Email Templates.
- Next to Experiences: One-Time Password Email, select Edit.
-
Edit the text in the email body.
Important Don’t remove{!Verification_Code}. -
(Optional) In the email body, insert merge fields listed under Available Merge Field. To
get the merge field value, select a field type, and then select a field. Copy and paste the
merge field value into the email body.
For example, from the Field Type dropdown, select Network Member Fields, and then select Site Name. The Merge Field Value displays
{!Community.Name}. - Click Save.
You can also use Visualforce to create a custom OTP email template using the $Network global merge field type.