Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Overview

Mailblock is a module for preventing drupal_mail() messages sent from development and staging sites from going to undesirable addresses. This is a good safety net, provided the site does actually send all its mail through drupal_mail -- the module will actually check that for you when you run the Drupal status report, and you should follow up any Mailblock warnings on that report as a matter of importance.

Features

  • Send test emails.
  • Whitelist.
  • Permit delivery to the site domain.
  • Scans for php mail() which can't be redirected.
  • Safe files list for php mail() function.
  • Raise a warning in the Drupal status report if the module is active on a live site (if configured correctly)

Similar modules

  • Mail Redirect - redirects all mail to a different domain, not a fully different email address
  • Reroute Email - Similar approach as this module and completely changes the outgoing email address, but without some of the extra features.

Project information