=== AddonLogic Daily Stats Email ===
Contributors: snehalpancholi
Tags: daily email, site stats, admin digest, analytics email, wp-cron
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sends a clean HTML daily digest email with yesterday's new posts, pages, users, and comments. Fully configurable via settings.

== Description ==

AddonLogic Daily Stats Email uses `wp_cron` to send a styled HTML summary email every day at a configurable hour. The email shows a stat table comparing yesterday's new items against all-time totals for each enabled module. A one-click "Send Test Email" button lets you preview the output immediately.

**Features**

* Modules: Posts, Pages, Users, Comments (each togglable)
* Configurable recipient, subject line, send hour
* `{site}` and `{date}` placeholders in subject
* Clean, responsive HTML email template
* Send Test Email button for instant preview
* wp_cron daily schedule with automatic rescheduling on hour change
* Settings at **Settings → Daily Stats Email**

== Installation ==

1. Upload `daily-stats-email` to `/wp-content/plugins/`.
2. Activate through **Plugins**.
3. Go to **Settings → Daily Stats Email** and configure recipient and hour.
4. Use **Send Test Email** to verify the email looks correct.

== Changelog ==

= 1.0.0 =
* Initial release.

== Frequently Asked Questions ==

= The email isn't arriving. =
Use a dedicated SMTP plugin (e.g. AddonLogic SMTP Configuration) to ensure reliable email delivery. The plugin sends via `wp_mail()` which relies on PHP's mail() by default.

= Can I change what stats are included? =
Yes. In **Settings → Daily Stats Email** uncheck any module you don't want included in the email.
