Home Plugins local email blocker
Local Email Blocker logo

Local Email Blocker

by Md Mostafizur Rahman on WordPress.org

Blocks outgoing emails in development environments and logs them for review.

(0)
Screenshot of the Email Log page.

Screenshot of the Email Log page.

Local Email Blocker is a lightweight WordPress plugin designed for developers and staging environments. It prevents WordPress from sending actual emails, instead intercepting them and storing them in your database for easy viewing. This is crucial for local development and staging sites where you don’t want test emails to accidentally reach real users.

Features:

  • Automatic Blocking: Automatically detects local development environments (localhost, .local, .test, .dev) and blocks emails.
  • Manual Blocking: Option to manually enable email blocking, perfect for staging sites.
  • SMTP Override: Can be configured to block emails even when an SMTP plugin is active, ensuring no emails escape.
  • Email Log: All intercepted emails are logged in the WordPress database, accessible via a dedicated admin page.
  • View Email Details: Easily view the full content, headers, and attachments of logged emails.
  • Clear Log: Option to clear all logged emails.
  • SMTP Status Detection: Provides information about your current SMTP configuration.

This plugin ensures that your development and staging processes are clean and free from unintended email dispatches, while still allowing you to inspect what emails would have been sent.

Active installations0+
Weekly downloads
7+75.00%
Version1.2.1
Last updated10/27/2025
WordPress version5.0
Tested up to6.8.3
PHP version8.1
Tags
blockdevelopmentemaillogstaging