=== Email Validation for WPForms (email-validation.org) ===
Tags: email validation, email verification, wpforms, contact form, form
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 1.0.1
License: MIT
License URI: https://opensource.org/licenses/MIT

Choose per WPForms form which email check results stop a submission, or turn the check off for one form.

== Description ==

An add-on to **email-validation.org – Email Validation for Forms**, which checks the email fields of every WPForms form when it is submitted, with one set of rules for all forms. This add-on lets each form decide for itself.

In the WPForms form builder, the Settings panel gets a section **Email Validation**:

* **As set under Settings → Email validation** (the default): the main plugin's rules, as for every other form.
* **With this form's own rules**: the statuses you tick for this form stop it, with this form's message under the field (empty: the main plugin's).
* **Not at all**: the form is never checked; nothing is sent or charged.

Every result is one of five statuses: `valid`, `invalid`, `catch_all`, `unknown` or `disposable`.

* **No second charge.** A form with its own rules is checked once, through the main plugin's checker; a form turned off is not checked at all (unless the main plugin's WPForms check was moved by custom code to run before this add-on's).
* **Nothing spent on a stopped submission.** With own rules, a submission WPForms already stopped (its CAPTCHA, Akismet or time limit) is not checked, unless the form stores spam entries (then WPForms passes the submission on as if it were not stopped).
* **Fails open.** When a check cannot be done (the API slow or out of reach, no credits), the main plugin's setting decides; by default the form goes through. A check waits at most 10 seconds and is never retried.
* **Nothing stored.** Each form's rules are settings of the form, saved by WPForms with it. The add-on keeps no option, file or log of its own.
* **Your API key stays where the main plugin keeps it.** This add-on has no key field of its own and never shows, logs or sends the key anywhere but to the API.

This add-on does not check the entries WPForms has already stored: WPForms offers no documented way for another plugin to keep a result beside an entry.

= Requirements =

* WPForms (WPForms Lite or a paid WPForms plan).
* email-validation.org – Email Validation for Forms 1.1.2 or later, with an API key.

== Installation ==

1. Install and activate WPForms and email-validation.org – Email Validation for Forms, and set your API key under Settings → Email validation.
2. Install and activate this add-on.
3. Open a form in the WPForms builder, go to Settings → Email Validation, choose how the form is checked and save the form.

== Frequently Asked Questions ==

= Is every submission checked twice now? =

No. A form that follows the main plugin is checked by the main plugin only. A form with its own rules is checked by this add-on only, through the main plugin's checker. A form turned off is not checked.

= Do my existing forms change? =

No. A form you have not changed in the new section follows the main plugin, as before.

= What happens when the API is slow or out of reach? =

The main plugin's setting decides, for forms with their own rules too: by default the form goes through.

= Can it check the entries I already have? =

No. With a paid WPForms plan, export them under WPForms → Tools → Export → Entries as a CSV file and upload it as a bulk list on email-validation.org.

= What happens when I uninstall it? =

Nothing to remove: the add-on stores nothing of its own. Each form's settings stay in the form (WPForms keeps them unused without the add-on), and every form follows the main plugin again.

== External services ==

This add-on sends email addresses to the email-validation.org API to check them, through the main plugin:

* **What is sent:** the address submitted in an email field of a form with its own rules. Your API key goes in the request header. Nothing else about the submission or the visitor.
* **When:** when a visitor submits a form with its own rules (forms that follow the main plugin are sent by the main plugin, as it describes).
* **Where:** `https://api.email-validation.org`, or `https://api-eu.email-validation.org` when EU data residency is chosen in email-validation.org – Email Validation for Forms.

The service is provided by email-validation.org: [Terms of Service](https://email-validation.org/legal/terms/), [Privacy Policy](https://email-validation.org/legal/privacy/).

== Changelog ==

= 1.0.1 =

* Needs email-validation.org – Email Validation for Forms 1.1.2 or later, which never hands back a value that quotes the API key.
* The main plugin is named by its new name, email-validation.org – Email Validation for Forms.

= 1.0.0 =

* First release: per-form rules in the WPForms form builder (follow the main plugin, own statuses and message, or off).
