=== IM Mail Form Webhook ===
Contributors: kazutaka-wada
Requires at least: 6.5
Requires PHP: 8.1
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Send accepted IM Mail Form submissions to external HTTPS webhook endpoints asynchronously.

== Description ==

IM Mail Form Webhook adds per-form JSON and form-encoded webhook deliveries, secure authentication, delivery logs, manual retry, and private time-limited attachment downloads.

IM Mail Form must be installed and active.

= Free trial =

On a non-local site, Webhook can be used without a license key for 30 days from the first use on the site. After the trial ends, webhook settings become read-only and deliveries keep working for 7 more days. After that, Webhook stops until a license is activated: new submissions are not sent, and deliveries still waiting in the queue are recorded as failed instead of being sent. After a license is activated, those deliveries are not sent automatically; they can be retried manually within their retry period. Saved settings are never deleted. Local development environments need no license.

= License scope =

A 1-site license covers one normalized hostname. `example.com` and `www.example.com` count as the same site. Other subdomains, such as `shop.example.com`, count as separate sites. The URL scheme, port, and path do not create additional sites for the same hostname.

During activation, the add-on sends the normalized hostname to the IM Series License Server. The server stores it to enforce the licensed site limit and to show the activation destination to authorized license administrators.

== Installation ==

1. Install and activate IM Mail Form.
2. Install and activate IM Mail Form Webhook.
3. Configure one or more Webhooks while editing an IM Mail Form.

Production sites that send attachments must define `IMMF_WEBHOOK_PRIVATE_DIR` as an absolute, writable directory confirmed to be outside every public web root. Local environments may use the automatically inferred development directory. If private storage cannot be verified, file deliveries fail closed while webhooks without files continue to work.

== Changelog ==

= 1.2.0 =
* Changed license activation to identify sites by normalized hostname instead of the previous Site Hash.
* Counted `www.example.com` and `example.com` as one site while treating other subdomains as separate sites.
* Added a safe administrator-assisted migration path for legacy activations.
* Improved recovery when WordPress cannot save newly issued activation data.

= 1.1.0 =
* Added a 30-day free trial with a 7-day read-only grace period, trial notices, and notification emails.

= 1.0.0 =
* Initial release.
