=== Yournotify ===
Contributors: yournotify
Tags: email, newsletter, forms, woocommerce, smtp
Requires at least: 4.6
Requires PHP: 7.4
Tested up to: 7.0
Stable tag: 2.3.0
License: GPLv3 or later

Build custom forms, collect submissions, sync Yournotify lists, send email notifications, and connect SMTP and WooCommerce.

== Description ==

Manage Yournotify through three tabs: Forms, SMTP and WooCommerce.

**Forms**

Create forms from one table. Every form uses the same field builder and `[yournotify_form id="N"]` shortcode, replacing N with the form's saved ID.

Add, remove and arrange Text, Email, Telephone, Long text, Dropdown, Checkbox, Website URL, Number and Date fields. Set each field's label, placeholder, default value, required rule and enabled status. Dropdowns have their own options. Each form also has its own button text, success message and active or paused status.

All valid submissions are saved against their form and can be viewed in the form's Submissions section. Optionally enter a Yournotify List ID to sync contacts, and/or a notification email address to receive submitted details. Forms that only store responses need neither. List syncing requires a valid Email or Telephone field; other collected fields become contact attributes.

Connect your account under Forms > API Connection when using list sync. API credentials, list destinations and notification recipients stay on the server. Multiple forms can appear on the same page with independent submission state.

**SMTP**

Send WordPress email through smtp.yournotify.com using your Yournotify SMTP credentials and verified sender email.

**WooCommerce**

Connect your store's customer and order automation to Yournotify. Existing WooCommerce configuration remains available in its own tab.

== External service ==

Yournotify is an external service. When a form has a List ID configured, the plugin verifies list access and sends its collected contact details and custom attributes to the Yournotify API to add or update the contact. Existing list memberships are preserved. A Yournotify account and API key are required for list sync. Account import notifications follow your Yournotify settings.

Forms store submitted values in your WordPress database. If a notification email is configured, the plugin sends the submitted values to that saved recipient using WordPress mail. Without list sync or a notification email, submissions stay in WordPress. SMTP sends WordPress email through Yournotify when enabled. WooCommerce integration sends customer and order information when configured.

Service: https://yournotify.com
Privacy policy: https://yournotify.com/privacy-policy

== Installation ==

1. Install and activate Yournotify from Plugins > Add New, or upload the plugin ZIP.
2. Open Yournotify > Forms > Add New Form.
3. Enter a name, then use Fields to design what you want to collect.
4. Optionally set a Yournotify List ID and/or notification email in Settings. Connect your API key under Forms > API Connection if you use list sync.
5. Create the form and copy its `[yournotify_form id="N"]` shortcode into a page, post, widget or Shortcode block.
6. Open that form's Submissions section to see collected responses.
7. Configure SMTP and WooCommerce in their respective tabs as needed.

== Frequently Asked Questions ==

= Can I create different forms with different fields? =

Yes. Each form owns its fields, settings, destinations and submissions. You can use the same builder for enquiries, newsletter signups, applications, feedback or other information you want to collect.

= Do all forms need a List ID? =

No. A List ID is optional and is only used when you want to sync collected contacts to Yournotify. Require an Email or Telephone field for list sync. Other forms can collect any supported fields without either contact field.

= What changed for existing shortcodes? =

Version 2.3.0 removes `[yournotify_subscribe]` and `[yournotify_contact]`. Create saved forms and replace old embeds with the exact `[yournotify_form id="N"]` shortcode from each editor. There is no legacy shortcode alias, global default form, default list or automatic shortcode replacement. Missing, invalid and paused form IDs do not accept submissions. Refresh cached form pages after updating.

= What happens if delivery fails? =

The submission stays saved under its form. The visitor sees a delivery error and administrators can inspect the failed list-sync or notification status in Submissions.

== Upgrade Notice ==

= 2.3.0 =
Breaking form change: replace `[yournotify_subscribe]` and `[yournotify_contact]` with saved `[yournotify_form id="N"]` forms. Legacy shortcodes and default-list routing are removed. Configure fields and optional destinations under Yournotify > Forms, then refresh cached pages.

== Changelog ==

= 2.3.0 =
* Organize settings into Forms, SMTP and WooCommerce.
* Add one forms table and a shared field builder for every form.
* Support custom text, email, telephone, long-text, dropdown, checkbox, URL, number and date fields.
* Save per-form field rules, optional List IDs, notification recipients, button text and success messages.
* Store submissions per form with admin-only viewing and delivery status.
* Use only `[yournotify_form id="N"]`; remove both legacy form shortcodes and default-list fallback.
* Verify list subscriptions, preserve existing memberships, and keep routing settings server-side.
* Isolate nonces, validation and AJAX state for each form.
* Preserve published WooCommerce functionality and SMTP settings.

= 2.2.0 =
* Add WooCommerce automation settings, event storage and integration.

= 2.1.7 =
* Route plugin email sends through wp_mail() when SMTP override is enabled.
* Load helper classes explicitly from the plugin bootstrap.


= 2.1.6 =
* Normalize plugin API calls to the current Yournotify endpoints.
* Add shared API client for bearer API-key requests.
* Fix automation/email/SMS helper compatibility with the current API surface.


*Release Date - 23 May 2022*

* Initial release!

*Updated Date - 17 Feburary 2025*

* New version!
