Part of the Mail ecosystem · 12 projects
The mail_composer module provides a modern, object-oriented API for creating and sending emails programmatically within Drupal. It leverages Twig templating for email content and integrates seamlessly with Drupal's service architecture.
This module allows for programmatic creating and sending of emails. It exposes an OOP and twig template based API replacing the messy hook based approach used by Drupal core. This uses Drupal services in the background and does not have any additional dependencies.
This is a pure API module and is to be used programmatically (in other modules).
See documentation for usage examples.
Ask your assistant about Mail composer
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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.
More in the Mail ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.2 | Stable | 9–11 | Sep 25, 2025 | ||
| 1.0.1 | Stable | 9–10 | Dec 26, 2023 | ||
| 4.0.1 | Stable | 9–10 | Dec 26, 2023 | ||
| 1.0.0 | Stable | 9–10 | May 19, 2023 | ||
| 1.0.0-alpha2 | Pre-release | 9–10 | Feb 4, 2023 | ||
| 1.0.0-alpha1 | Pre-release | 9–10 | Feb 1, 2023 | ||
| 1.x-dev | Dev | 9–11 | Jan 25, 2023 |