=== Email Validation for Groundhogg (email-validation.org) ===
Tags: email validation, email verification, groundhogg, crm, contacts
Requires at least: 6.5
Requires PHP: 8.1
Stable tag: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT

Checks the address of each contact Groundhogg adds and tags the contact when its status is one the rules of email-validation.org – Email Validation for Forms stop.

== Description ==

An add-on to **email-validation.org – Email Validation for Forms**. That plugin checks the email fields of WPForms, Contact Form 7, Gravity Forms, Fluent Forms and other form plugins; this add-on checks the contacts Groundhogg adds from anywhere: its own forms, WordPress registration, WooCommerce and other integrations, the REST API and the admin's "Add contact".

When Groundhogg adds a contact, or a contact's address changes, the address is checked. If the result is one of the statuses ticked under Settings → Email validation (by default `invalid` and `disposable`), the contact gets the tag "Email check: invalid" (or the status it got). Use the tag in a funnel, to leave those contacts out of a broadcast, or in a contact search. Every result is one of five statuses: `valid`, `invalid`, `catch_all`, `unknown` or `disposable`.

* **A fixed address loses the tag.** When a changed address passes, the add-on's tag is taken off.
* **Fails open.** When a check cannot be done (the API slow or out of reach, no credits), the contact is left as it is. A check waits at most 10 seconds and is never retried.
* **An earlier result stays until a definite one replaces it.** A check that cannot be done, or an `unknown` result, never takes off an earlier tag, even when the address changed.
* **One check per address.** The main plugin remembers a definite result for an hour and limits the checks one visitor can cause.
* **No surprise costs.** Groundhogg's imports, user syncs and other bulk work are not checked, and one request checks at most five addresses.
* **Nothing stored of its own.** Only Groundhogg's tags; 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.

= Requirements =

* Groundhogg.
* email-validation.org – Email Validation for Forms 1.1.2 or later, with an API key.

== Installation ==

1. Install and activate Groundhogg and email-validation.org – Email Validation for Forms, and set your API key under Settings → Email validation.
2. Install and activate this add-on. Each contact added from then on is checked.

== Frequently Asked Questions ==

= Can a contact be refused instead of tagged? =

No: Groundhogg saves a contact before any add-on can see it. Use the tag in a funnel, a broadcast or a contact search instead.

= Are my existing contacts checked? =

No, only contacts added or changed from now on. Imports and other bulk work are not checked either.

= Can a contact be left out? =

Yes, with the filter `evorg_groundhogg_check_contact`: return false for that contact.

== Changelog ==

= 1.0.0 =
* First version: contacts Groundhogg adds, and changed addresses, checked and tagged.
