Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Mail Actions

21 sites Security covered Drupal 10–11 Mail ecosystem
View on drupal.org

This module enhances Drupal's email capabilities by adding new actions to send formatted text or raw HTML emails, supplementing the core module's plain text option. These actions can be utilized in various parts of Drupal, such as Views Bulk Operations and ECA.

This module adds configurable actions for sending mails. Drupal core only provides a mail action that supports plain text. This module adds further mail actions that allow to send formatted text and raw HTML.

Features

Adds the ability to send mails with HTML formatting anywhere actions are supported, for example in Views Bulk Operations and ECA.

Post-Installation

Once installed, you have two more action plugins available. They can be used anywhere actions are involved.

The new action plugins are called

  • "Send email with formatted text" - there you can choose your preferred configured WYSIWYG editor and format your mail using that way.
  • "Send email with raw HTML" - provides a textarea where you can insert raw HTML. It additionally supports Tokens and Twig template language.

Additional Requirements

This module only requires Drupal core. No other contrib module is required.

This module is especially useful in combination with another module that makes use of actions. For example

Similar projects

This module is very simplistic by just adding new action plugins. If you need more extensive mail functionality, have a look at following solutions:

Installation

Install the module as you would normally install a contributed
Drupal module. Visit https://www.drupal.org/node/1897420 for further
information.

You probably need to initially configure the mailer DSN settings of your
site. More details about configuring the transport DSN can be found here:
https://www.drupal.org/node/3369935

Following example can be used in a local `settings.php` file to test mailing
locally with MailHog (https://github.com/mailhog/MailHog):

<?php
// Mailer DSN settings for local testing with MailHog.
$config['system.mail']['mailer_dsn'] = [
  'scheme' => 'smtp',
  'host' => 'localhost',
  'port' => 1025,
];

// Following part is usually not needed. This will be automatically configured
// when installing the module.
$config['system.mail']['interface']['mail_action'] = 'mail_action_html';
?>

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
3
Tracked since
Oct 2024
Latest release
9 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Nov 18, 2025
1.0.0-beta1 Pre-release 10–11 Oct 3, 2025
1.0.0-alpha5 Pre-release 10–11 Oct 24, 2024