Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Mail composer

Security covered Under active development 5 sites

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.

Drupal 9–10 · not 11

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.

Activity

Tracked releases
7
Tracked since
Jan 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

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