Selectively disable group welcome emails

Selectively disable group welcome emails

This question is answered

Is there a way to disable the welcome messages sent to users within specific groups when they receive membership through a new role membership? Part of our Telligent Community 6.1 installation includes a large Intranet group hierarchy that is constantly growing and we would like to suppress the welcome messages sent to staff as new groups are added.

Verified Answer
  • Hey Robert, there is a way to do this.  In the group_useradded.xml template you can add the following logic to the subject field.

    #if($core_v2_group.Current.Id == <Group_Id_to_ignore>)

        $email_utility.CancelEmail()

    CancelEmail() will prevent the email from being sent.  You can add that logic for as many groups as necessary.

  • Yes, that’s correct.  It has the same members as the widget extension interface so it should be a simple matter to add.  Once the plugin is enabled, you should see the extension in the email API documentation in the Control Panel > Site Admin > Setup > Email Settings > API Documentation link.

All Replies
  • Looks like the title of my original post was clipped. Sorry about that. Anyone know if it's possible to control when group welcome messages are sent?

  • Could someone from Telligent weigh in on this?

  • Hey Robert, there is a way to do this.  In the group_useradded.xml template you can add the following logic to the subject field.

    #if($core_v2_group.Current.Id == <Group_Id_to_ignore>)

        $email_utility.CancelEmail()

    CancelEmail() will prevent the email from being sent.  You can add that logic for as many groups as necessary.

  • Awesome! Thanks, Blake. Since we have quite a few groups, I'll create a Widget API extension to check the groupId against our list of "blacklisted" groups for any direct matches or blocked parents that are configured to block all subgroups from sending emails. This will be great for our Intranet site and subgroups.

    Thanks so much!

  • I face the same problem.... I'll try Blake.. Thank you

  • Hi Blake,

    Quick question for you. Do widget extensions need to implement the IEmailTemplateExtension before they resolve within email templates?

  • Yes, that’s correct.  It has the same members as the widget extension interface so it should be a simple matter to add.  Once the plugin is enabled, you should see the extension in the email API documentation in the Control Panel > Site Admin > Setup > Email Settings > API Documentation link.

  • ...and it works! Thanks, Blake!