=== Wesender e-mail ===
Contributors: wesender, hallojerrynl
Tags: mail, email, smtp, woocommerce, transactional
Requires at least: 5.7
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.4.9
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Send all WordPress emails via Wesender. Connect your account in one click, no SMTP configuration needed.

== Description ==

The Wesender e-mail plugin routes all WordPress emails - including WooCommerce orders, contact forms, and password resets - through the Wesender API.

= Features =

* Connect via OAuth - no API key to copy
* Works with WooCommerce, Contact Form 7, Gravity Forms, and any plugin that uses wp_mail()
* Email statistics and mail log in your Wesender dashboard
* Attachments are sent automatically

== Installation ==

1. Download wesender-wp.zip from wesender.nl/apps/wordpress/
2. Go to Plugins > Add New Plugin > Upload Plugin
3. Select the ZIP file and click Install Now
4. Activate the plugin
5. Go to Settings > Wesender e-mail and click Connect to Wesender

See docs.wesender.nl/apps/wordpress for the full guide.

== Third-Party Service ==

This plugin sends email via the Wesender API (api.wesender.nl). When WordPress sends a
mail using wp_mail(), the plugin forwards it to Wesender's servers for delivery.

No data is sent before you connect your Wesender account via the settings page.

* Service: https://wesender.nl
* Privacy policy: https://wesender.nl/juridisch/privacyverklaring
* Terms of service: https://wesender.nl/juridisch/algemene-voorwaarden

== Frequently Asked Questions ==

= Does this work with WooCommerce? =

Yes. WooCommerce uses wp_mail() for all emails. The plugin intercepts these automatically.

= Does my domain need to be verified? =

Yes. The sender domain must be verified in your Wesender account with SPF, DKIM, and DMARC.

= What if I get "Plugin file does not exist"? =

See the troubleshooting section in the documentation: docs.wesender.nl/apps/wordpress#troubleshooting

== Changelog ==

= 1.4.8 =
* Fix: direct access protection changed to `if ( ! defined( 'ABSPATH' ) ) exit;` one-liner in all include files

= 1.4.7 =
* Fix: direct access protection changed to `defined( 'ABSPATH' ) || exit;` in all include files

= 1.4.6 =
* Fix: nonce verification ignore on OAuth callback GET reads (state token is the CSRF check)
* Fix: input sanitization ignore for paginated log view (integer cast)
* Fix: direct database query ignore for wpdb->insert in log recorder
* Fix: add caching to get_sources() query
* Fix: NoCaching ignore for DROP TABLE in uninstall

= 1.4.5 =
* Fix: all text domain references updated to wesender-e-mail
* Fix: output escaping for pagination counter
* Fix: wp_redirect replaced with wp_safe_redirect throughout
* Fix: unlink() replaced with wp_delete_file()
* Fix: error_log() removed, errors recorded in mail log only
* Fix: direct database queries use caching and esc_sql()

= 1.4.4 =
* Fix: removed built-in update checker (not permitted in WordPress.org plugins)
* Fix: Text Domain updated to match WordPress.org plugin slug
* Fix: Tested up to updated to WordPress 7.0

= 1.4.0 =
* Fix: plugin activation now uses deactivate_plugins() instead of directly rewriting active_plugins option
* Fix: admin styles now loaded via wp_add_inline_style() through admin_enqueue_scripts hook
* Update: readme.txt translated to English, broken URLs corrected

= 1.3.2 =
* New: automatic update notification in WordPress (no more manual installation needed)
* Fix: "We" logo in sidebar menu instead of envelope icon
* Fix: "We" logo in plugin header enlarged for better readability
* Improvement: modern pill navigation, larger logo mark, card with shadow
* Renamed: "Blokkeren" menu is now "Plugins blokkeren"
* Moved: Wesender menu is now at the bottom of the WordPress navigation

= 1.3.1 =
* Fix: Wesender logo (We) in plugin header instead of envelope icon
* Fix: Block page now shows all installed plugins via get_plugins()
* Addition: "Report error" link in mail log for failed emails

= 1.3.0 =
* Addition: dedicated top-level "Wesender" menu in WordPress admin (Connection / Mail log / Block)
* Addition: mail log - all sent emails are recorded with timestamp, recipient, subject, source, and status
* Addition: block - block specific plugins or themes from sending email via Wesender
* Addition: automatic source detection - the plugin recognizes which plugin or theme calls wp_mail()
* Addition: database table for mail log with automatic installation on activation

= 1.2.1 =
* Fix: also remove stale wesender-wp* directories on activation (prevents "Plugin file does not exist")
* Fix: PHP 7.4 compatibility (str_contains and match replaced with equivalents)
* Addition: external service disclosure in readme.txt

= 1.2.0 =
* Fix: remove stale plugin entries on activation to prevent conflicts after reinstall
* Addition: readme.txt

= 1.1.0 =
* Plugin URI updated to installation guide
* Version number updated in plugin header

= 1.0.0 =
* Initial release
