Allow multiple comma separated recipients

Created on 2 October 2023, 9 months ago

Problem/Motivation

To allow compatibility with the standard way of sending emails to multiple recipients in Drupal, this module needs to be capable of sending emails to multiple comma separated recipients.

Steps to reproduce

  • Attempt to send an email to multiple comma separated email addresses.

Proposed resolution

  • Add logic to explode provided addresses into an array & trigger an email for each array item.

Remaining tasks

  • Tighten up template selection - we only use email and not SMS so have not focused on this as it's a time sensitive piece of work:
    In the 'format' method, could parse the to parameter into a more structured object attaching the relevant template to each address. The 'mail' method already uses the correct send method based on if each address is an email or mobile number.
  • Improve response handling to handle multiple calls.
✨ Feature request
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Alexj12

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

Comments & Activities

Production build 0.69.0 2024