Description
This plugin checks the email address a visitor submits with the email-validation.org API and stops the results you choose, with your own message. It works with:
- WPForms
- Contact Form 7
- Gravity Forms
- Elementor forms (Elementor Pro)
- Ninja Forms
- Fluent Forms
- Formidable Forms
- WooCommerce checkout (the classic checkout and the Checkout block) and registration
It also cleans the addresses you already have: Users → Clean email addresses checks every user’s address, and every WooCommerce customer’s billing address, as one bulk list, and keeps each result with the user.
Every check returns one of five statuses: valid, invalid, catch_all, unknown or disposable. By default the plugin stops invalid (the address cannot receive mail) and disposable (a throwaway inbox) on forms, only invalid at WooCommerce checkout, and lets everything else through. You choose which statuses to stop.
- Your API key stays on your server. It is kept in your site’s settings (or in
wp-config.php), never shown again on the settings page and never sent to a visitor’s browser. - Runs after the form’s own field checks. An empty or malformed address gets the form’s usual message and costs nothing. WPForms and Formidable are checked only once their spam checks passed, and Fluent Forms once its CAPTCHA passed, so a submission they stopped uses no credit; Contact Form 7, Gravity Forms, Elementor and Ninja Forms check fields before their spam filters, so give your key a daily credit cap. Ninja Forms, Fluent Forms and Formidable are hooked only while they are active, and each form plugin can be turned off on the settings page.
- One check per address. The same address in another case, or a form sent again within an hour, is not checked (or charged) again. An
unknownresult is asked again next time (it is free). - Never stops a visitor because of us. If a check cannot be done (no credits left, the API out of reach), the form goes through. You can choose to stop it instead.
- Suggests a fix for a likely typo (“Did you mean jane@gmail.com?”), if you want.
- EU data residency: choose the EU endpoint to have checks validated and stored in the EU.
WooCommerce checkout
The billing email is checked when the order is placed, on the classic checkout and the Checkout block, with its own settings:
- Stops only
invalidby default. Stoppingdisposableis your choice;catch_allandunknownare never stopped unless you tick them (a real customer can get them). - Never loses an order because of us. A check that times out or cannot be done lets the order through, unless you choose to stop it.
- Your own message at the checkout (empty: the forms’ message).
- A retried checkout is not charged again: the result is remembered for an hour under a hash of the address.
- An optional private order note with the result (the status and reason), off by default. The address is never stored in the note, the logs or anywhere else.
- Compatible with WooCommerce’s High-Performance Order Storage (HPOS) and the Cart and Checkout blocks.
Clean your existing users and customers
Users → Clean email addresses checks the addresses already on your site as one bulk list:
- Counts first, spends only when you confirm. It counts the account addresses of your users and the billing addresses of your WooCommerce customers (when they differ) on your site, shows the number and the most credits it can use, and sends nothing until you tick the box and confirm.
- One list, in the background. The addresses go to the API as one bulk list. The plugin waits for it with WooCommerce’s Action Scheduler, or WP-Cron without WooCommerce, in batches that each save their progress: you can close the page, and a PHP time limit only delays it.
- Never charged twice. The list is started once; a run that was interrupted goes on with the same list. Addresses that already have a result are left out next time, unless you ask to check them again.
- Results stay with the user. Each result is saved as user meta (
evorg_email_status,evorg_email_reasonandevorg_email_checked, the check date; for a customer’s own billing addressevorg_billing_status,evorg_billing_reasonandevorg_billing_checked) and shown in the Email check column and filter on the Users screen. A changed address drops its result. - Nothing is deleted or changed. The plugin never deletes or edits a user, a customer, an order or a role. What to do with a bad address stays your choice.
- The API key needs the permission “Bulk lists”. On your server, the list and the results are kept only while the run needs them, in a private folder under uploads. What the email-validation.org service keeps of the list is under External services below.
You need an email-validation.org account and an API key. A check uses one credit; unknown results, errors and test addresses are free (credits and billing).
External services
This plugin sends the email address a visitor submits to the email-validation.org API to check it:
- What is sent: the email address, and your API key in the request header. Nothing else about the visitor. For a bulk clean: the list of your users’ addresses and your WooCommerce customers’ billing addresses, each with a reference made of the user’s id (
u12,b12), and nothing else about them. - When: when a visitor submits a form the plugin checks (see the settings), when you click Check the connection (a test address and your API key), and when you confirm a bulk clean (then the plugin also asks for the list’s progress and downloads its results).
- Where:
https://api.email-validation.org, orhttps://api-eu.email-validation.orgwhen you choose EU data residency. - The list a bulk clean uploads, and its results: as the Terms of Service say, “Uploaded files and results are deleted 30 days after upload (results of a list that finishes in its last day are kept for 7 days after it finishes).” What else the service keeps of each check, and for how long, is in the privacy policy.
The service is provided by email-validation.org: Terms of Service, Privacy Policy.
Installation
- Install and activate the plugin.
- In your email-validation.org dashboard, create an API key with the permission “Validate addresses” (add “Read balance and usage” to see your balance in WordPress), and give it a daily credit cap.
- In WordPress, open Settings → Email validation, paste the key and save. Or add
define( 'EVORG_API_KEY', 'ev_live_…' );towp-config.php. - Click Check the connection: it checks a free test address, then shows your credit balance if the key may read it.
- Choose the statuses to stop and the forms to check.
- Try a form with
no_mailbox@sandbox.email-validation.org(stopped) andaccepted@sandbox.email-validation.org(passes). Test addresses cost nothing. - To clean the addresses you already have, give the key the permission “Bulk lists” and open Users → Clean email addresses.
FAQ
Which form fields are checked?
Email fields: the email field of WPForms, Contact Form 7 (email and email*), Gravity Forms, Elementor forms, Ninja Forms, Fluent Forms and Formidable Forms, the billing email at WooCommerce checkout (classic checkout and Checkout block), and the email of a WooCommerce registration.
What does the plugin log?
At WooCommerce checkout, a stopped order and a check that could not be done are written to WooCommerce → Status → Logs (source email-validation-org) with the status, reason or error code. A bulk clean logs its counts, its job id and its error codes there. The address is never logged.
Does the bulk clean delete users with a bad address?
No. It never deletes or edits a user, a customer, an order or a role: it only keeps each result with the user. Filter the Users screen by Email check (for example invalid) to see them, and decide yourself.
What happens when my credits run out?
The forms keep working and addresses are not checked. A notice in your WordPress admin says why, until a check works again or you check the connection.
Does the plugin store the address?
For individual form checks, the plugin does not store the email address locally. It sends the address to the API in the body of an HTTPS request and never logs it. It remembers the result (its status and reason only) for an hour under a hash of the address, so a form sent again is not charged again. For the per-visitor limit it keeps a salted hash of the visitor’s IP address (for IPv6, of its /64; for an IPv4-mapped IPv6 address, of its IPv4 address) with a count, for at most an hour, never the IP address itself.
For bulk cleaning, the plugin temporarily writes the upload list and downloaded results to a private folder under uploads (random file names, a deny-all .htaccess) and deletes each file as soon as the run is done with it; it keeps each result as user meta (status, reason and date). Deleting the plugin removes all of it. What the API keeps is described in the privacy policy.
Can a script or spam bot spend my credits?
Only within limits. One visitor (one IP address) can cause at most 20 paid checks an hour; after that the form is treated as if the check could not be done, so your “when a check fails” setting decides, and nothing is charged. The daily credit cap on your API key bounds the total. The filter evorg_visitor_limit changes the number (0 turns it off; administrators are never limited). Behind a reverse proxy or CDN that WordPress does not see through, all visitors may share the proxy’s address: return the real visitor address from the filter evorg_visitor_ip (only from a header your proxy sets and visitors cannot). The plugin uses an address only when it is a valid IPv4 or IPv6 address: a filter answer that is not one is ignored, and a server address that is not one counts with every other such request under one shared limit.
Can I change the decision in code?
Yes: the filter evorg_blocked_message receives the message (or null when the address passes), the API’s result (or a WP_Error), the address and the form (woo_checkout at WooCommerce checkout). Return a message to stop the form, or null to let it through.
Changelog
1.1.1
- The plugin’s name is now “email-validation.org – Email Validation for Forms”, to match its WordPress.org slug
email-validation-org. - The visitor’s IP address is validated and sanitized before the per-visitor limit counts it:
REMOTE_ADDRand the answer of the filterevorg_visitor_ipare used only when they are a valid IPv4 or IPv6 address. A filter answer that is not one is ignored; a server address that is not one counts under one shared limit, never as it is. - Users → Clean email addresses on PHP 8.1 and 8.2: a background step that finished the list and sent it in the same request could send it cut at the size of an earlier batch (PHP’s file size cache). The list’s size is now read from the open file.
- The readme says what the email-validation.org service keeps of a bulk clean’s list, in the words of its Terms of Service.
- WPForms: a submission its CAPTCHA, Akismet or time limit already stopped is no longer checked, so it uses no credit.
- The per-visitor limit counts an IPv4 visitor that the web server reports as an IPv4-mapped IPv6 address (::ffff:203.0.113.7) by its IPv4 address. Before, all such visitors shared one count, so after 20 checks in an hour the checks stopped for every IPv4 visitor until the next hour.
- Users → Clean email addresses: a run whose next background step was lost no longer stays stuck; opening the screen schedules it again.
1.1.0
- Ninja Forms, Fluent Forms and Formidable Forms: their email fields are checked like the other forms’, each with its own setting, hooked only while the plugin is active.
- Users → Clean email addresses: checks existing users and WooCommerce customers as one bulk list, in the background, and keeps each result as user meta, shown in a column and filter on the Users screen. Never started or charged twice, and nothing is started after a Cancel. Nothing is deleted or changed.
- Fixes from WordPress.org’s Plugin Check: the Contact Form 7 value is sanitized, and the Checkout block’s message is escaped.
1.0.0
- First release.
