About Email Verification

E-Mail Verification and Domain Validation via API. Checks an email address against blacklist and availability of mailhost. Blacklisted domains and email addresses are simply stored in a text file. Easy to edit.

Category 1Input Fields
Inputfield modules that provide a UI input widget in the ProcessWire admin.
Category 2Proof of Concept
Proof of concept modules are designed as examples or starting points for others to build from. May not be ideal for users wanting to plug-n-play.
Category 3Other Modules
Modules that have a unique purpose not covered by existing categories.
Category 4Users and Access
Modules dealing with access in ProcessWire via Users, Roles or Permissions.
Release StateStable
Should be safe for use in production environments. *
Authorkixe
Module Version1.2.6
Class NameEmailVerification
Compatibility2.4, 2.5, 2.6, 2.7, 3.0
Date AddedOctober 13, 2014
Last UpdatedMay 23, 2018
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/EmailVerification/
How to install or uninstall modules

README

EMAIL VERIFICATION

Provides API for E-Mail and Domain Verification. Options:

  • Check email address against blacklist (editable textfile) If a domain service https://trashmail-blacklist.org/ updated weekly) Use the implementation on your own risk. You maybe need a special license to call fiddlemail.com, mogelmail.de or any other domain related to this service.
  • Check availability of mailhost. (MX and A Resource Record)
  • Validate Top Level Domain. (list of TLDs (punycode) pulled from IANA stored in local textfile, updated monthly)
  • Validate Domainname (Syntax)
  • Validate Hostname (Syntax)

Blacklisted domains are listed in an easy to edit text file blacklist.txt which is stored in the repository of this module.

API

// get module  
$mailcheck = $modules->get('EmailVerification');

// return bool/ string - automatted update of blacklist file
$mailcheck->blacklisted(email|domain)

// return bool - validate a top level domain, checks against IANA list
$mailcheck->validTLD(tld)

// return array of punycoded TLDs - cyclic updated, data pulled from IANA
$mailcheck->getTLDs(cycle=2592000)

// return bool - checks syntax converts to punycode
$mailcheck->validDomainName(domain);

// return bool - checks punycode encoded syntax
$mailcheck->validHostName(host);

// return bool - checks syntax and accessibility
$mailcheck->validHost(email|domain)

// add a single value to blacklist
$mailcheck->addToBlacklist(email|domain)

License

GNU-GPLv3

Author

kixe (Christoph Thelen)

Comments

No comments yet. Be the first to post!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.