=== RM24 Newsletter & Campaign Builder for WooCommerce ===
Contributors: agenturroth
Tags: newsletter, woocommerce, email marketing, double opt-in, campaign
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Build newsletters from blocks and WooCommerce products and send them from your own site – with double opt-in in four languages.

== Description ==

**RM24 Newsletter & Campaign Builder** lets you create product newsletters directly in WordPress and send them to your subscribers – without an external newsletter service and without monthly fees per contact.

= Features =
* **Block builder:** title, text, image, WooCommerce product, button and divider. Reorder with drag and drop or the arrow buttons.
* **WooCommerce products:** load a product by SKU or name – image, name, price (as shown in your shop), short description and link are filled in automatically.
* **Live preview** while you edit, plus test emails to any address.
* **Personalization:** {first_name}, {last_name} and {email} in subject, titles and texts.
* **Double opt-in** in German, French, Italian and English. Subscribers receive all emails in their own language.
* **Signup form** with the shortcode `[rm24_newsletter_form]`, spam protection (arithmetic task, hidden field, time check, at most one confirmation email per address every 10 minutes) and a required consent checkbox, linked to your privacy policy if you have set one.
* **Sending in the background** in batches of 25 emails every 5 minutes, with progress and a stop button.
* **One-click unsubscribe** in every email, including the List-Unsubscribe header that Gmail and Apple Mail show next to the sender.
* **Subscriber management** with search, status filter and CSV export.
* **Your design:** header banner, colors, fonts and footer with your company details – set once, used in every campaign.

= RM24 Newsletter Builder PRO =
The separate PRO add-on (available at [rm24.ch](https://rm24.ch/produkt/rm24-newsletter-campaign-builder-for-woocommerce/)) adds scheduled sending, your own hourly limit, two products side by side, the newest products with one click, EAN search, tablet and mobile preview and the CSV import of subscribers. This free plugin is fully functional on its own.

== Installation ==

1. Install the plugin through Plugins → Add New, or upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin. WooCommerce must be active.
3. Go to RM24 → Newsletter → Settings and enter your sender details and the company details for the footer.
4. Add the shortcode `[rm24_newsletter_form]` to a page.
5. Create your first campaign under RM24 → Newsletter → Campaigns.

== Frequently Asked Questions ==

= Which mail server is used? =
The emails are sent with `wp_mail()`, i.e. with the email settings of your WordPress site. For reliable delivery we recommend an SMTP plugin and an SPF/DKIM setup for your domain. With an SMTP plugin the one-click unsubscribe header (List-Unsubscribe) also reaches the mailbox unchanged; the PHP `mail()` function of some servers shortens long header lines in a way that email clients cannot read. The unsubscribe link in the footer works in every case.

= Why are campaigns sent in batches? =
Many hosting providers limit the number of emails per hour. Sending in batches protects your server and the reputation of your domain. The batches run with WP-Cron, which is triggered by visits to your site. On sites with little traffic we recommend a real cron job on the server.

= Do links in old confirmation emails keep working after the update? =
Yes. Confirmation and unsubscribe links of version 1.0 keep working.

= Which data is stored? =
Email address, first and last name (optional), language, status and the dates of signup and confirmation. The data stays in your WordPress database. On uninstall the table, the campaigns and the settings are deleted.

== External services ==

The RM24 overview page (RM24 → Overview) can show a list of further RM24 plugins. The list is only loaded after you click "Show more RM24 plugins". It is then requested from https://rm24.ch/plugin_updates/modules.json and cached for 12 hours. No data about your site, your shop, its customers or your subscribers is sent; the request only contains the data every web request contains (such as your server's IP address).

The service is provided by RM24 | Roger Roth: [Terms and privacy policy](https://rm24.ch/datenschutzerklaerung/).

The newsletter itself is sent through the email setup of your own site; this plugin does not send any data to RM24.

== Changelog ==

= 1.1.1 =
* Fix: after signing up, visitors are sent back to the page with the form and see the confirmation message (before, they landed on the homepage).
* Fix: opt-in emails, newsletters and the confirm/unsubscribe pages are in the subscriber's language even if WordPress itself is not installed in that language.
* Fix: the consent checkbox is always shown and required, also without a privacy policy page.
* Fix: an old confirmation link no longer subscribes an address again after it has unsubscribed; the one-click unsubscribe (List-Unsubscribe-Post) now also triggers the "unsubscribed" action.
* Fix: signing up again keeps the link of the confirmation email already sent valid; at most one confirmation email per address every 10 minutes; the public form no longer changes the name or language of confirmed subscribers.
* Fix: only shop managers and administrators can create, edit and send campaigns (before, every user who could write posts could open the campaign editor).
* Fix: the product search only finds published products.
* Tested with WordPress 7.1 and WooCommerce 11.3.

= 1.1.0 =
* New: sending in the background in batches, with progress and stop button.
* New: live preview while editing, test emails, button and divider blocks, image alt texts.
* New: personalization with {first_name}, {last_name} and {email}.
* New: all opt-in emails in the language of the subscriber (DE, FR, IT, EN).
* New: one-click unsubscribe header, consent checkbox, improved spam protection.
* New: subscriber search, status filter and CSV export.
* New: shared RM24 menu with an overview of all installed RM24 plugins.
* The "Sent with" credit in emails is now off by default.
* PRO features moved to the separate RM24 Newsletter Builder PRO add-on.

= 1.0.0 =
* Initial release.
