Disable external emails
Prevents accidental sending of emails to external recipients from non-production environments.
by netzstrategen · github.com/netzstrategen/wordpress-disable-external-emails
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/netzstrategen/wordpress-disable-external-emails/archive/refs/heads/master.zipReadme
disable-external-emails
Restricts outbound emails to a list of defined email domains and addresses.
Quick links: Installation
Installation
Install as Git submodule
-
Add the plugin as submodule.
git submodule add --name disable-external-emails git@github.com:netzstrategen/wordpress-disable-external-emails.git wp-content/mu-plugins/disable-external-emails -
Add a must-use plugin loader file
wp-content/mu-plugins/disable-external-emails.php:<?php /* Plugin Name: Disable external emails Version: 1.0.0 Description: Prevents accidental sending of emails to external recipients during development. Author: netzstrategen Author URI: https://netzstrategen.com */ require_once __DIR__ . '/disable-external-emails/disable-external-emails.php'; -
Configure a list of allowed email domains and addresses in
wp-config.php:const DISABLE_EXTERNAL_EMAILS_EXCEPT = '@example.com, exact@example.com, @netzstrategen.com';
Come create with us!
Originally authored by Bogdan Arizancu and Daniel Kudwien.
