2

Please note the following

  1. Community is active
  2. Send welcome email is checked
  3. User profile is added as members of the community
  4. Issue is happening in sandbox and production
  5. An apex class handles user creation for self registered users
  6. Welcome email template is of type visualforce to handle email content based on user language

But the welcome email is not sent unless Let guest users see other members of this community is enabled under community settings.

We don't want to enable this option and don't really see the correlation between this setting and welcome email.

To be noted that as per this article, Let guest users see other members of this community impacts data privacy and is turned off by default since Winter '21 release .

Here is the visualforce template

<messaging:emailTemplate subject="{!$Label.Community_Welcome_Note_Subject} {!$Network.Name}" recipientType="User" relatedToType="Network"
language="{!Recipient.LanguageLocaleKey}">

<messaging:htmlEmailBody >
<html>
<body>
    {!$Label.Community_Welcome_Note_Greetings}
    {!IF($Network.Name != 'Company Name', Recipient.FirstName , '')}
    <p>{!$Label.Community_Welcome_Note_BodyLine1}</p>
    <p>{!$Label.Community_Welcome_Note_BodyLine2} {!Recipient.Email} {!$Label.Community_Welcome_Note_BodyLine3} </p>
    <p> {!$Network.NetworkUrlForUserEmails} </p>
    <p> {!$Label.Community_Welcome_Note_BodyLine4} </p>

<p>{!$Label.Regards} </p>
<p>{!$Label.Community_Welcome_Note_FinalGreetings}</p>
</body>
</html>
</messaging:htmlEmailBody>
</messaging:emailTemplate>

We are aware of similar questions on this topic but there is no clear answer on the root cause and possible solution :
Welcome Email not getting sent to community users on register
Site.createExternalUser not sending out welcome email to user

Case raised with support has not provided useful info.

Any help is appreciated

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.