=== Mail via Resend ===
Contributors: webscapenz
Tags: email, smtp, resend, mail, email-logging
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Send WordPress emails via Resend. Includes email logging and management.

== Description ==

A WordPress plugin that routes all `wp_mail()` calls through [Resend](https://resend.com), providing reliable email delivery with comprehensive logging and management features.

**Note:** This plugin is not officially associated with or endorsed by Resend. It is an independent, community-developed plugin that integrates with Resend's API service.

= Features =

* **Resend Integration**: All WordPress emails are automatically sent via Resend API
* **Email Logging**: Complete email log with searchable, paginated interface
* **Settings Management**: Easy configuration of API key and default email settings
* **Automatic Cleanup**: Configurable log retention with automatic cleanup via WP-Cron
* **Developer Friendly**: Hooks and filters for extensibility

= Configuration =

Navigate to **Settings → Resend** in the WordPress admin menu to configure your API key and email settings.

Access the email log via **Tools → Email Log** in the WordPress admin menu.

= Privacy Policy =

This plugin collects and stores the following data:

* Email addresses of recipients (stored locally in your database)
* Email subjects and body excerpts (first 500 characters, stored locally)
* Email headers (stored locally)
* Email delivery status and Resend API response IDs (stored locally)

All data is stored locally in your WordPress database and is not transmitted to any third-party service except Resend for the purpose of sending emails. Email logs are stored in a custom database table and can be managed or deleted through the plugin's admin interface.

By using this plugin, you consent to sending emails through the Resend service. Please review [Resend's Privacy Policy](https://resend.com/legal/privacy-policy) and [Terms of Service](https://resend.com/legal/terms-of-service) for information about how Resend handles your data.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/mail-via-resend/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Navigate to **Settings → Resend** in the WordPress admin menu and configure your API key

== Frequently Asked Questions ==

= Do I need a Resend account? =

Yes, you need to sign up for a Resend account at https://resend.com and obtain an API key.

= Where are the settings? =

Settings are located at **Settings → Resend** in the WordPress admin menu.

= Where is the email log? =

The email log is located at **Tools → Email Log** in the WordPress admin menu.

= Does this plugin track users? =

No. All data is stored locally in your WordPress database. The plugin only communicates with Resend's API to send emails.

== Changelog ==

= 1.0.1 =
* Confirmed compatibility with WordPress 6.9.
* Preserve PHPMailer-derived From/Sender headers when routing mail through Resend to align with wp_mail() behavior in WordPress 6.9.

= 1.0.0 =
* Initial release
* Resend API integration
* Email logging functionality
* Admin settings page
* Email log management interface

== Upgrade Notice ==

= 1.0.1 =
WordPress 6.9 compatibility and improved From/Sender handling when sending via Resend.

