Send Asynchronous Email Verifications
Where: This change applies to Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions. It's available in all communities accessed through Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.
Why: If you set up async email verification for community sign-ups, customers can access your community immediately, even before they verify their email address. You can send customers a verification link in the email message. After they click the link, their email address is verified. So customers can log in with the email address the next time they visit. Also, external users can log in without a password only after their email address is verified.
As a best practice for both internal and external users, send async email verifications on occasion. Sending email verifications ensures that users are registered with a valid email address that they own.
How: Set up email identity verification using the Apex method asyncEmailConfirmation, which sends the verification link in an email message. Here’s an example.
System.UserManagement.sendAsyncEmailConfirmation('005RM000001a0Ox', '00XRM000000hxnG', '0DBRM000000015i', '/s/contactsupport');
You can customize verification email messages by modifying the Communities: User Verification Email template or through the API using the AsyncVerificationLink field on the API Network object. To determine which users receive an email with the verification link, check that the User Verified Email bit is set. You can find the User Verified Email bit from Setup or via the API.