Enabling Welcome Emails for Communities
Note: This update can only occur within Sandbox and then perform a change set to Production in order to save those changes.
The TX_CommunitiesSelfRegController Apex Class and TX_CommunitiesSelfRegConfirm Visual Force page must be modified in a Sandbox and moved to production via a Change Set. For additional information, please see Deploy change sets from sandbox to production.
Step 1: Enable all welcome emails for communities
- Navigate to Setup and search for Digital Experiences (formerly All Communities).
- Select the Manage link next to your first Community.
- Select the Administration option in the left pane and then Emails.
- Check the Send Welcome Email option in the “Email Templates” section.
- Save your changes.
- Repeat steps 2-5 for each Community.
Step 2: Update self register controller to no longer pass the username to self register confirm controller
- Navigate to Setup and search for Apex Classes.
- Click the TX_CommunitiesSelfRegController.
- Click Edit.
- Locate the following text (approximately line 85):
PageReference page = System.Page.TX_CommunitiesSelfRegConfirm;
- Remove the following that is after the above text:
// passes userName to self reg confirm page page.getParameters().put('username', userName);
Step 3: Update Self Register Confirm Visualforce page to remove references to the TX_CommunitiesSelfRegConfirm Apex Class
- Navigate to Setup and search for Visualforce Pages.
- Click TX_CommunitiesSelfRegConfirm.
- Select the Edit button.
- REPLACE the first line on this page with the following:
<apex:page showHeader="false" standardStylesheets="false" sidebar="false" expires="0" cache="false" docType="html" controller="TargetX_Base.TX_CommunitiesBase" applyHtmlTag="false">
- Save your changes.
Step 4: Select the standard Forgot Password Email Template in your Community
- Navigate to Setup and search for Digital Experiences (formerly All Communities).
- Locate your Community and click Workspaces.
- Click Administration and then Emails.
- Under the Email Templates section, update the Forgot Password field with the Communities: Forgot Password Email template.
- Save your changes.
Validating new email
To validate that your email works properly, follow these steps:
- Navigate to your Community.
- Select Signup.
- Enter the required information and select Submit.
- Check the email address of the user you just signed up.