=== SmartMailer ===
Contributors: dominikshaim
Tags: newsletter, email marketing, woocommerce, contact form 7, wpforms
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WordPress and WooCommerce to the SmartMailer.cz e-mail marketing service. Contacts are synchronised automatically as they are created.

== Description ==

SmartMailer connects your WordPress site to the **SmartMailer.cz** e-mail marketing service. Once configured, new contacts are sent to your SmartMailer address book automatically, at the moment they are created on your site. No cron job is required.

Contacts are collected from:

* **WordPress** – new user accounts and comment authors
* **WooCommerce** – customers from new orders (billing name and e-mail)
* **Contact Form 7** – submitted form entries (with per-form field mapping)
* **WPForms** – submitted form entries (with per-form field mapping)

Each integration is opt-in and disabled by default. Nothing is transmitted until you enter a valid API token and turn an integration on.

Contacts are **not** sent retroactively — only from the moment you set the plugin up. To import existing WordPress and WooCommerce contacts, the plugin can generate a CSV file that you import in the SmartMailer administration.

This plugin requires a SmartMailer.cz account. SmartMailer.cz is a third-party service; see the *External services* section below.

== Installation ==

1. Upload the `smartmailer` folder to the `/wp-content/plugins/` directory, or install the plugin through the **Plugins** screen in WordPress.
2. Activate the plugin through the **Plugins** screen.
3. Open **SmartMailer** in the admin menu.
4. Enter your **API token** (SmartMailer administration → Settings → API → Generate) and the **address book UUID**.
5. Enable the integrations you want (WordPress, WooCommerce, Contact Form 7, WPForms).

== Frequently Asked Questions ==

= Do I need a SmartMailer.cz account? =

Yes. The plugin synchronises contacts into a SmartMailer.cz address book and requires an API token from your SmartMailer account.

= Are existing contacts imported automatically? =

No. Synchronisation starts when you enable an integration. For existing WordPress and WooCommerce contacts, use the CSV export and import it in SmartMailer.

= Does the plugin work without WooCommerce? =

Yes. WooCommerce, Contact Form 7 and WPForms integrations appear only when those plugins are active.

== External services ==

This plugin connects to the **SmartMailer.cz** e-mail marketing service to synchronise your contacts. The connection is required for the plugin's core functionality.

When an integration is enabled, the plugin sends contact data — **first name, last name and e-mail address** — to the SmartMailer API at the moment a contact is created on your site (a user registers, a comment is posted, a WooCommerce order is placed, or a Contact Form 7 / WPForms form is submitted). Requests are made over HTTPS and authenticated with the API token you enter in the settings.

No data is sent until you enter a valid API token and enable at least one integration. The CSV export feature generates a file for download in your browser and does **not** transmit data to SmartMailer.

* Service provider: SmartMailer.cz — https://smartmailer.cz
* API endpoint: https://smartmailer.cz/api/v1/
* Terms of Service: https://smartmailer.cz/obchodni-podminky
* Privacy Policy: https://smartmailer.cz/zasady-ochrany-osobnich-udaju

== Changelog ==

= 1.1.5 =
* Full internationalization: English source strings + bundled Czech and Slovak translations (text domain `smartmailer`).

= 1.1.4 =
* Rewritten to native WordPress; removed the bundled Nette and Latte libraries (smaller footprint, no dependency conflicts).
* Removed the self-hosted updater; updates are now delivered through WordPress.org.
* Prepared for the WordPress.org plugin directory: GPL license, readme and external-service disclosure.

= 1.1.3 =
* Hardening: access-control, nonce and capability checks on the data export; CSV formula-injection protection; request timeouts on API calls.

= 1.1.2 =
* Maintenance release.
