=== AddonLogic Failed Email Alerts ===
Contributors: snehalpancholi
Tags: email failure, wp_mail, smtp alert, email monitoring, mail log
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Detect wp_mail failures, log them to the database, and alert the admin via admin notice, fallback PHP mail, or a Slack/Discord webhook.

== Description ==

Failed Email Alerts hooks into `wp_mail_failed` and every outgoing `wp_mail` call. When a delivery failure is detected, it is logged to a custom database table and an alert is dispatched via your chosen method: WordPress admin notice (with cooldown), a PHP mail() fallback (bypasses the broken wp_mail stack), or a Slack/Discord-compatible webhook.

**Features:**
* Three alert methods: admin notice, PHP mail() fallback, webhook (Slack/Discord)
* Configurable cooldown to prevent alert floods during outages
* Full failure log: time, recipient, subject, error code, error message
* Paginated log viewer with clear-log button
* Auto-prunes log to configured max entries
* Zero external dependencies

== Installation ==

1. Upload `failed-email-alerts/` to `/wp-content/plugins/`.
2. Activate via Plugins → Installed Plugins. The log table is created on activation.
3. Go to Settings → Failed Email Alerts to choose your alert method.
4. View failures at Tools → Email Failure Log.

== Changelog ==

= 1.0.0 =
* Initial release.
