This module intercepts all outgoing emails from a Drupal site and reroutes them to a predefined configurable email address.

This is useful in case where you do not want email sent from a Drupal site to reach the users. For example, if you copy a live site to a test site for the purpose of development, and you do not want any email sent to real users of the original site. Or you want to check the emails sent for uniform formatting, footers, ...etc.

This is also a good demonstration of what hook_mail_alter(), available in Drupal 5.x and later, can do.

Installation and Configuration

Check the README.txt (Drupal 7 / Drupal 9/10) file for detailed instructions on installation, configuration and usage.

Tips and Tricks

Overriding configuration variables:
Reroute Email provides configuration variables that you can directly override in the settings.php file of a site. This is useful for moving sites from live to test and vice versa.
For more information and a code snippet, please check the README.txt file under the section Tips and Tricks.


Original Author: Khalid Baheyeldin of 2bits.com.
Drupal 8/9 Maintainer: Bohdan Artemchuk of DevBranch.
The author and maintainers can also be contacted for paid customizations of this module as well as Drupal consulting, installation, development, and customizations.

🇺🇦

This module is maintained by Ukrainian developers.
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.
Supporting organizations: 
Module maintenance: bug fixing, support and feature requests.
Module maintenance: bug fixing, support and feature requests.
Module maintenance: bug fixing, support and feature requests.

Project information

Releases