Download the PHP package innocode-digital/wp-mailgun-email-validation without Composer
On this page you can find all versions of the php package innocode-digital/wp-mailgun-email-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innocode-digital/wp-mailgun-email-validation
More information about innocode-digital/wp-mailgun-email-validation
Files in innocode-digital/wp-mailgun-email-validation
Package wp-mailgun-email-validation
Short Description Validates email address through Mailgun.
License GPL-2.0+
Informations about the package wp-mailgun-email-validation
Mailgun Email Validation
Description
Validates email address through Mailgun.
Install
-
Preferable way is to use Composer:
`
By default it will be installed as Must Use Plugin. But it's possible to control with
extra.installer-paths
incomposer.json
. -
Alternate way is to clone this repo to
wp-content/mu-plugins/
orwp-content/plugins/
:`
If plugin was installed as regular plugin then activate Mailgun Email Validation from Plugins page
or WP-CLI: wp plugin activate wp-mailgun-email-validation
.
Usage
Add required constant (usually to wp-config.php
):
`
or
`
You could use either one of these constants. MAILGUN_APIKEY
is used also by
Mailgun for WordPress plugin.
Documentation
By default plugin skips admin_email
from validation but it's possible to enable it:
By default plugin skips users email from validation but it's possible to enable it:
By default plugin checks if email address has deliverable
or unknown
status and hasn't
high
risk but it's possible to set own criteria:
It's possible also to use validate
and is_valid
methods from plugin:
-
innocode_mailgun_email_validation()->get_client()->validate( $email )
- validates email address with Mailgun Email Validation. innocode_mailgun_email_validation()->is_valid( $email )
- uses previous method but also applies filters and caches result, returns boolean value.