PHPackages                             lukeyouell/craft-emailvalidator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. lukeyouell/craft-emailvalidator

AbandonedCraft-plugin[Validation &amp; Sanitization](/categories/validation)

lukeyouell/craft-emailvalidator
===============================

Email address validation for user registrations, custom forms and more.

1.2.2(7y ago)101.3k[2 issues](https://github.com/lukeyouell/craft-emailvalidator/issues)MITPHP

Since Jul 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/lukeyouell/craft-emailvalidator)[ Packagist](https://packagist.org/packages/lukeyouell/craft-emailvalidator)[ RSS](/packages/lukeyouell-craft-emailvalidator/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

[![icon](src/icon.svg)](src/icon.svg)

Email Validator plugin for Craft CMS 3
======================================

[](#email-validator-plugin-for-craft-cms-3)

Email address validation for user registrations, custom forms and more.

[![settings](resources/screenshots/settings.png)](resources/screenshots/settings.png)

[![cp](resources/screenshots/cp.png)](resources/screenshots/cp.png)

[![frontend](resources/screenshots/frontend.png)](resources/screenshots/frontend.png)

Installation
------------

[](#installation)

#### Requirements

[](#requirements)

This plugin requires Craft CMS 3.0.0, or later.

#### Plugin Store

[](#plugin-store)

Log into your control panel and click on 'Plugin Store'. Search for 'Email Validator'.

#### Composer

[](#composer)

1. Open your terminal and go to your Craft project:

```
cd /path/to/project
```

2. Then tell Composer to load the plugin:

```
composer require lukeyouell/craft-emailvalidator
```

3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Email Validator.

Configuration
-------------

[](#configuration)

You can toggle which checks are enforced by updating the plugin settings.

The following options are available:

NameDefaultDescriptionTypo Check &amp; Suggestions`enabled`Provide an alternative email suggestion if a typo is detected in the domain part of the email address.MX Records`disabled`Allow domains that aren't configured to receive email.Catch All`enabled`Allow domains that are configured to catch all incoming mail traffic.Roles`enabled`Allow role-based email addresses.Free Providers`enabled`Allow email addresses found to be using a free email provider such as Gmail and Yahoo!.Disposable Providers`disabled`Allow email addresses found to be using a disposable email provider.### Overriding Plugin Settings

[](#overriding-plugin-settings)

If you create a config file in your `config` folder called `email-validator.php`, you can override the plugin's settings in the Control Panel. Since that config file is fully multi-environment aware, this is a handy way to have different settings across multiple environments.

Here's what that config file might look like along with a list of all of the possible values you can override.

```
