Skip to content

netzstrategen/wordpress-disable-external-emails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

disable-external-emails

Restricts outbound emails to a list of defined email domains and addresses.

Quick links: Installation

Installation

Install as Git submodule

  1. Add the plugin as submodule.

    git submodule add --name disable-external-emails [email protected]:netzstrategen/wordpress-disable-external-emails.git wp-content/mu-plugins/disable-external-emails
  2. 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';
  3. Configure a list of allowed email domains and addresses in wp-config.php:

    const DISABLE_EXTERNAL_EMAILS_EXCEPT = '@example.com, [email protected], @netzstrategen.com';

Come create with us!

Originally authored by Bogdan Arizancu and Daniel Kudwien.

About

Prevents accidental sending of emails to external recipients from non-production environments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages