Integrations · Websites and CMS

Check form emails on GridPane sites

On a GridPane WordPress site, our WordPress plugin checks the email address a visitor submits before the form is accepted: WPForms, Contact Form 7, Gravity Forms, Elementor forms, Ninja Forms, Fluent Forms, Formidable Forms and the WooCommerce checkout and registration. It is the plugin from the WordPress.org directory, email-validation.org – Email Validation for Forms. This guide installs it with GridPane's own WP-CLI command and keeps the key where GridPane keeps a site's settings through clones and migrations.

The plugin needs nothing from the panel beyond WordPress itself. When a check cannot be made (no credits left, the API out of reach), the form goes through by default.

Before you start

  • A WordPress site on a GridPane server with WordPress 6.0 or newer and PHP 8.1 or newer (set per site in GridPane).
  • An API key for each site. Create one on the API keys page with the permission "Validate addresses" (add "Read balance and usage" to see your balance in WordPress), and give it a daily credit cap.

Install with GP WP-CLI

As root on the server, gp wp runs WP-CLI for one site as that site's system user, from any folder. Replace example.com with the site's primary domain:

gp wp example.com plugin install email-validation-org
gp wp example.com plugin activate email-validation-org

Repeat for each site. Or install it from the site's WordPress admin: Plugins → Add Plugin, search for email-validation.org, Install Now, Activate. WordPress then offers the plugin's updates as for any directory plugin.

The key

GridPane builds a new wp-config.php when a site is cloned or migrated, and reads custom settings from /var/www/example.com/user-configs.php, which it keeps. Put the key there, below the opening <?php block, as root:

nano /var/www/example.com/user-configs.php
define( 'EVORG_API_KEY', 'your key' );

The key stays out of your shell history, and the plugin uses it over any key saved on its settings page. A clone of the site carries the file, and so the key, with it: give a clone its own key, or remove the line. Or paste the key under Settings → Email validation instead.

Then follow the WordPress guide from step 3: click Check the connection, and choose the forms and the results to stop.

Try it

Try the form with a free test address: accepted@sandbox.email-validation.org goes through and, with the default settings, no_mailbox@sandbox.email-validation.org is stopped; neither costs a credit or contacts a mail server. Use them only on a form that sends no mail to the address it gets: a message to a test address bounces, and bounces hurt your site's sender reputation.

Each check costs at most 1 credit; unknown results, errors and test addresses are free. A form check sends only the address being checked, to https://api.email-validation.org (or https://api-eu.email-validation.org when you pick the EU region, for EU data residency). The WordPress guide covers every setting.

GridPane's own documentation: GP WP-CLI and the wp-config.php and GridPane.

More on GridPane

Updated · Maintained by: Email Validation LLC

Need help? Contact support, or ask the help chat. Something wrong or missing on this page? Tell us