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. |
Project information
- Module categories: Developer Tools, Integrations
- 16,766 sites report using this module
- Created by kbahey on , updated
- Drupal 10 is here!
2.2.x is Drupal 10 compatible.
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
RC with Drupal Symfony Mailer support.
Development version: 2.3.x-dev updated 9 Dec 2023 at 12:45 UTC
Please use this release for Drupal core from ^9.4 to 10 incl. (hook_mail_alter implementation).
Development version: 2.2.x-dev updated 28 Sep 2023 at 08:55 UTC
A new release fixed all bugs posted in the public queue during Dec 2017 - Feb 2019.
Development version: 7.x-1.x-dev updated 2 Feb 2019 at 16:53 UTC