Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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';
?>

Activity

Total releases
2
First release
Oct 2025
Latest release
7 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.0 Stable Nov 18, 2025
1.0.0-beta1 Pre-release Oct 3, 2025