Allow emails to be sent to selected roles

Created on 1 March 2017, over 7 years ago
Updated 7 August 2023, over 1 year ago

Problem

Notification emails need to sent to all users assigned to specific role.

Solution

Allow 'To', 'Cc', and 'Bcc' email addresses to be populated using selected roles.

Tasks

  • Update admin settings form. (email_roles)
  • Update admin settings scheme. (email_roles)
  • Refactor recipient email element.
  • Update email handler configuration form. (EmailWebformHandler::buildConfigurationForm)
  • Add 'Email roles' checkbox with hide/show logic. (to_roles, cc_roles, bcc_roles)
  • Update email send method (EmailWebformHandler::getMessage)
  • Update email summary to support selected roles.
  • Add custom support for 'authenticated' role.
  • Make sure roles are rechecked before sending email.
  • Update email debugger.
  • Write update hook to update all existing email handlers.
  • Write tests.

Notes

πŸ“Œ Task
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany demonde

    If I get it right, there is no way to send an email to a submitter that has a specific role by this function. Emails will be send to all users that have a specific role here.

Production build 0.71.5 2024