This project is not covered by Drupal’s security advisory policy.
This module offers an API to allow developers to send customizable messages to users. The module comes with a plugin to send messages by e-mail out of the box, but plugins for other delivery methods can be added.
The messages can be customized by authorized users through a form that allows tokens to be used. Moreover, custom templates for messages may be provided by modules or themes.
With this module, sending messages to users can be as simple as this:
$users = [ User::load(1), User::load(2), User::load(3) ];
$sender = \Drupal::service('sender.sender');
$sender->send('my_message_id', $users);
Or passing values for token replacement:
$users = [ User::load(1), User::load(2), User::load(3) ];
$data = [ 'node' => Node::load(1) ];
$sender = \Drupal::service('sender.sender');
$sender->send('my_message_id', $users, $data);
This module also provides a form element for modules willing to allow their users to configure messages used for different purposes.
Requirements
This module requires the following contributed modules:
HTML emails
It's recommended to enable HTML emails to take full advantage of this module. Some modules that add this capability to Drupal are listed below:
Project information
Seeking new maintainer
The current maintainers are looking for new people to take ownership.- Project categories: Developer tools, Integrations
2 sites report using this module
- Created by dbiscalchin on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.