=== AddonLogic Email Logging ===
Contributors: snehalpancholi
Tags: email, log, wp_mail, mail, debugging
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

Log all outgoing WordPress emails to a database table with admin viewer, search, and one-click resend.

== Description ==

AddonLogic Email Logging captures every email sent by WordPress (via `wp_mail`) and stores it in a database table. Browse the full history, search by recipient or subject, view the email body in a modal, and resend any logged email with a single click.

**Features:**
* Automatic logging of all `wp_mail` calls
* Logs to, subject, headers, body, status, and error message
* Admin list at Tools → Email Log with pagination
* Search by recipient address or subject
* View full email body in a modal overlay
* One-click resend for any logged message
* Separate failure entries when `wp_mail` returns an error
* One-click "Clear All Logs" with confirmation
* Summary stats (sent / failed / total)

== Installation ==

1. Upload the `email-logging` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu.
3. Go to **Tools → Email Log** to view outgoing emails.

== Changelog ==

= 1.0.0 =
* Initial release.
