=== WB Mailer ===
Contributors: chriswinfieldblum
Tags: smtp, email, resend, mailgun, sendgrid
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Stable tag: 1.0.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Reliable WordPress email delivery via Resend, SMTP, Mailgun, SendGrid, and Amazon SES — with logs, routing, and a modern admin.

== Description ==

WB Mailer takes over `wp_mail` so transactional and notification emails leave your site through a real mail provider instead of PHP `mail()`.

**Providers**

* Resend (official PHP SDK + HTTP API fallback)
* Generic SMTP
* Mailgun
* SendGrid
* Amazon SES

**Features**

* Multiple connections with From-email routing
* Default + fallback connections
* Import connections from Fluent SMTP, WP Mail SMTP, and Easy WP SMTP
* Clean leftover Fluent / WP Mail SMTP / Easy WP SMTP settings from the database
* Email logging with retention and resend
* Force From name / email
* Simulation mode for staging
* Dashboard with send stats
* Encrypted credential storage
* Optional `WBMAILER_RESEND_API_KEY` in `wp-config.php`

== Installation ==

1. Upload the `wb-mailer` folder to `/wp-content/plugins/`
2. Optional: run `composer install --no-dev` in the plugin folder to use the official Resend PHP SDK (otherwise the built-in Resend HTTP client is used)
3. Activate the plugin through the Plugins screen
4. Open **WB Mailer → Connections** and add a provider, or import from Fluent SMTP / WP Mail SMTP / Easy WP SMTP
5. Send a test email from **WB Mailer → Test Email**

== wp-config constants ==

```
define( 'WBMAILER_RESEND_API_KEY', 're_xxxxxxxx' );
define( 'WBMAILER_ENCRYPT_KEY', 'optional-custom-encrypt-secret' );
```

== Changelog ==

= 1.0.2 =
* Clean leftover Fluent SMTP, WP Mail SMTP, and Easy WP SMTP connection settings from the database

= 1.0.1 =
* Import connections from Fluent SMTP and Awesome Motive mailers (WP Mail SMTP, Easy WP SMTP)

= 1.0.0 =
* Initial release
