Allow users the option to "unsubscribe" from bulk emails

Created on 23 May 2024, 6 months ago
Updated 31 July 2024, 4 months ago

Problem/Motivation

As VU I want to choose if I want to receive email from the community. At the moment direct emails from managers to users are sent without consent and this is not GDPR complaint. A user should always be able to opt-out from an email.

Steps to reproduce

Proposed resolution

  • Allow LU to opt-out from mailing me as event enroller
  • Allow LU to opt-out from mailing me as group members
  • Change global email bottom text
  • Change text copies to notify event managers that not all users can receive the email

Remaining tasks

User interface changes



API changes

  1. New module is added - social_email_broadcast
  2. New hook is introduced:
    /**
     * Implements hook_activity_send_email_notifications_alter().
     */
    function hook_social_email_broadcast_notifications_alter(array &$items): void {
      $items['community_updates']['bulk_mailing'][] = [
        'name' => 'custom_entity_type_bulk_mailing',
        'label' => t('Unsubscribe from emails on "custom_entity_type" updates'),
        'entity_type' => [
          'custom_entity_type' => ['first_bundle', 'second_bundle'],
        ],
      ];
    }
    

Data model changes

Feature request
Status

Fixed

Version

13.0

Component

Code (back-end)

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024