Skip to main content

Return to TX Community

Liaison

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

  1. Navigate to Setup and search for Digital Experiences (formerly All Communities).
  2. Select the Manage link next to your first Community.
  3. Select the Administration option in the left pane and then Emails.
  4. Check the Send Welcome Email option in the “Email Templates” section.
  5. Save your changes.
  6. Repeat steps 2-5 for each Community.

Step 2: Update self register controller to no longer pass the username to self register confirm controller

  1. Navigate to Setup and search for Apex Classes.
  2. Click the TX_CommunitiesSelfRegController.
  3. Click Edit.
  4. Locate the following text (approximately line 85):  
 PageReference page = System.Page.TX_CommunitiesSelfRegConfirm;
  1. 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 

  1. Navigate to Setup and search for Visualforce Pages.
  2. Click TX_CommunitiesSelfRegConfirm.
  3. Select the Edit button.
  4. 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">
  1. Save your changes.

Step 4: Select the standard Forgot Password Email Template in your Community

  1. Navigate to Setup and search for Digital Experiences (formerly All Communities).
  2. Locate your Community and click Workspaces.
  3. Click Administration and then Emails.
  4. Under the Email Templates section, update the Forgot Password field with the Communities: Forgot Password Email template.
  5. Save your changes.

Validating new email

To validate that your email works properly, follow these steps:

  1. Navigate to your Community.
  2. Select Signup.
  3. Enter the required information and select Submit.
  4. Check the email address of the user you just signed up.

 

  • Was this article helpful?