You cannot send email to multiple receivers at once

Created on 6 September 2017, almost 7 years ago
Updated 12 January 2024, 5 months ago

Hi,
I think there can be a feature implemented in this module.
In Email.php on line 90 and next lines from there, we set the receiver to the owner of this Message. But let's say we want to send emails to more than one receiver it is not possible...
So I suggest when we are sending email, in options we set "to" and later on we check if $options['to'] exsits if not we set as reciever author of template.

$notifier = \Drupal::service('message_notify.sender');
$options = [
  'to' => $users, 
];
$notifier->send($message, $options);
✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

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.

Production build 0.69.0 2024