Mailgun Email Validator
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Synopsis
This modules allow you to validated your Email widget field module, Webform email field and Custom textfield with mailgun parameter through Mailgun Email Validator, which is much more than regex validation. Mailgun validator is based on real-world data + RFC spec to ensure more accurate validation.
Configuration
After enabling this module, please check admin/config/services/mailgun. Here you can insert your Mailgun api credential, which will include public-key.
Check for Open SSL extension enabled.
Configure Email field widget :
- Install Email field Module.
- Create cck field for email using email widget.
- While creating the field, Mailgun email validator enable checkbox will be provided within Field setting form.
- Enabling Mailgun email validator will validate email widget field,if invalid email is entered Mailgun will provide you with suggested email address right below your email field.
Configure Webform email field :
- Install Webform Module.
- Create webform and add email field.
- While creating the field, Mailgun email validator enable checkbox will be provided within webform component setting form.
- Enabling Mailgun email validator will validate email widget field,if invalid email is entered Mailgun will provide you with suggested email address right below your email field.
Usage
To enable a form to validate textfield for email, simply set #mailgun_email in the form array to TRUE.
$form['custom_email'] = array(
'#title' => t('Email Address'),
'#type' => 'textfield',
'#description' => t('Custom Mailgun Email Validator Textfield.'),
'#mailgun_email' => TRUE,
);
Example can be find at /mailgun_email_validator_example url after installation.
Maintainer
This project is originally written by Sandeep Kumbhatil along with co-maintainer Avinash Shukla
