Title: Local Email Blocker
Author: Md Mostafizur Rahman
Published: <strong>Август 4, 2025</strong>
Last modified: Октябрь 27, 2025

---

Search plugins

![](https://ps.w.org/local-email-blocker/assets/banner-772x250.png?rev=3338996)

![](https://ps.w.org/local-email-blocker/assets/icon-256×256.png?rev=3338996)

# Local Email Blocker

 By [Md Mostafizur Rahman](https://profiles.wordpress.org/jahid32/)

[Download](https://downloads.wordpress.org/plugin/local-email-blocker.1.2.1.zip)

 * [Details](https://os.wordpress.org/plugins/local-email-blocker/#description)
 * [Reviews](https://os.wordpress.org/plugins/local-email-blocker/#reviews)
 *  [Installation](https://os.wordpress.org/plugins/local-email-blocker/#installation)
 * [Development](https://os.wordpress.org/plugins/local-email-blocker/#developers)

 [Support](https://wordpress.org/support/plugin/local-email-blocker/)

## Description

**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.

## Screenshots

 * [[
 * Screenshot of the Email Log page.
 * [[
 * Screenshot of an individual email detail view.
 * [[
 * Screenshot of the Email Blocker Settings page.

## Installation

 1. **Upload:** Upload the `local-email-blocker` folder to the `/wp-content/plugins/`
    directory.
 2. **Activate:** Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. **Configure:** Go to `Email Blocker > Settings` to configure blocking options and
    view the email log.

## FAQ

### How do I view blocked emails?

After activating the plugin, navigate to `Email Blocker > Email Log` in your WordPress
admin dashboard. All intercepted emails will be listed there.

### Can I use this plugin on a live production site?

While the plugin is primarily designed for development and staging environments,
it can be used on a live site if you explicitly want to block all outgoing emails
and log them. However, be cautious as this will prevent all legitimate emails (e.
g., password resets, order confirmations) from being sent to your users.

### What happens if I have an SMTP plugin installed?

By default, Local Email Blocker will block emails even if an SMTP plugin is configured,
especially if you enable the Block Even With SMTP” option in settings. This ensures
complete control over email sending in your development environment.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Local Email Blocker” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Md Mostafizur Rahman ](https://profiles.wordpress.org/jahid32/)

[Translate “Local Email Blocker” into your language.](https://translate.wordpress.org/projects/wp-plugins/local-email-blocker)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/local-email-blocker/),
check out the [SVN repository](https://plugins.svn.wordpress.org/local-email-blocker/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/local-email-blocker/)
by [RSS](https://plugins.trac.wordpress.org/log/local-email-blocker/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release of Local Email Blocker.
 * Core functionality for intercepting and logging emails.
 * Basic admin interface for viewing logs.

## Meta

 *  Version **1.2.1**
 *  Last updated **6 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 8.1 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/local-email-blocker/)
 * Tags
 * [block](https://os.wordpress.org/plugins/tags/block/)[development](https://os.wordpress.org/plugins/tags/development/)
   [email](https://os.wordpress.org/plugins/tags/email/)[log](https://os.wordpress.org/plugins/tags/log/)
   [staging](https://os.wordpress.org/plugins/tags/staging/)
 *  [Advanced View](https://os.wordpress.org/plugins/local-email-blocker/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/local-email-blocker/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/local-email-blocker/reviews/)

## Contributors

 *   [ Md Mostafizur Rahman ](https://profiles.wordpress.org/jahid32/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/local-email-blocker/)