Mailer
The Mailer module helps developers manage and organize custom-coded emails within a Drupal site by bundling all email-related data into a single plugin. This plugin can then be called from anywhere in the site, simplifying email creation and maintenance. Note that this module does not handle the actual sending of emails; it requires a separate module for that functionality.
This module provides a new plugin type to define coded emails throughout your website.
This is a developer module, the provided UI is minimal.
When creating a site that sends a lot of mails your code gets sloppy fast.
Each mail needs a hook_email, hook_template, a calling function, ...
This module makes it possible to bundle all the mail data into a single mailer plugin and call the plugin from everywhere on your website.
An example module is provided with a basic and extended example.
Mailer does not handle the sending of your emails! You will need a module like mailsystem or swiftmailer to be able to send html emails.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 2.0.0-rc1 | Pre-release | 10–11 | Aug 25, 2026 | |
| 2.0.0-beta3 | Pre-release | 8–10 | Sep 13, 2023 |