Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Mail Actions

Security covered Under active development 32 sites

Part of the Mail ecosystem · 12 projects

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';
?>
Drupal 10–11

Ask your assistant about Mail Actions

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
8
Tracked since
Jul 2024
Latest release
10 months ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP 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
1.0.0-alpha4 Pre-release 10–11 Jul 27, 2024
1.0.0-alpha3 Pre-release 10–11 Jul 27, 2024
1.0.0-alpha2 Pre-release 10–11 Jul 26, 2024
1.0.x-dev Dev 10–11 Jul 26, 2024
1.0.0-alpha1 Pre-release 10–11 Jul 26, 2024