=== Creamailer for Ninja Forms ===
Contributors: sakaril, creamailer
Tags: integration, creamailer, ninja-forms
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.3
Stable tag: 1.0.0
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires Plugins: ninja-forms

Integration for Creamailer in Ninja Forms.

== Description ==

Creamailer is a Finnish email marketing service. This plugin allows you to easily integrate Creamailer in your Ninja Forms.

== External services ==

This plugin connects to an external API provided by Creamailer Oy, available at https://api.cmfile.net/v1/api.

**Purpose**:
The API is used to manage email subscriber lists in the Creamailer service.

**What data is sent and when**:
- When a user submits the subscription form, their **email address and name** are sent to the Creamailer API to subscribe them to a selected email list.
- In the WordPress admin interface, the plugin fetches the list of available email lists using the same API.

**Authentication**:
- The plugin requires an API key and user identifier provided by Creamailer.
- These credentials are stored in the WordPress options table and used to authenticate requests to the API.

**Service provider**:
Creamailer Oy
[Privacy Policy](https://www.creamailer.fi/tietosuojaseloste)

== Installation ==

1. Upload plugin directory to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Add Creamailer settings to WP Admin -> Settings -> Creamailer for Ninja Forms
4. Add "Subscribe to our newsletter" element to your Ninja Forms form
5. Add Creamailer action to your Ninja Forms form actions

== Screenshots ==

New Ninja forms element "Subscribe to our newsletter" (name changes based on settings) added to the Ninja Forms editor.
Name is fetched from element named "name".
Email is taken from element of type Email.

`/assets/add_new_field.png`

`/assets/add_subscribe.png`

Creamailer action needs to be added to form actions.

`/assets/add_new_action.png`
`/assets/send_to_creamailer.png`
`/assets/send_to_creamailer_added.png`

== Changelog ==

= 1.0.0 =
* Initial version