Validates Email Veracity Of plugin

Plugin details

Validates an email address for well-formedness and verifies it's domain by checking if there are any mail servers associated with it.

Repositoryhttp://svn.savvica.com/public/plugins/validates_email_veracity_of/ Tags validation LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.savvica.com/public/plugins/validates_email_veracity_of/

=== Options

* *message*
- Changes the default error message.
* *domain_check*
- Skips domain MX lookup unless true.
* *timeout*
- Time (in seconds) before the domain lookup is skipped. Default is 2.
* *fail_on_timeout*
- Causes validation to fail if a timeout occurs.
* *timeout_message*
- Changes the default timeout error message.


=== Examples

Changes the default error message from 'is invalid.' to 'is not correct.'

validates_email_veracity_of :email_address, :message => 'is not correct.'



Domain MX lookup is skipped.

validates_email_veracity_of :email, :domain_check => false



Causes the domain lookup to timeout if it does not complete within half a second.

validates_email_veracity_of :email, :timeout => 0.5



Causes the validation to fail on timeout and changes the error message to 'is invalid.' to obfuscate it.

validates_email_veracity_of :email, :fail_on_timeout => true, :timeout_message => 'is invalid.'

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: Guest, about 1 year ago