Socket
Book a DemoInstallSign in
Socket

mailchecker

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailchecker

0.0.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

Mailchecker

Simply validate your email in 3 steps using Mail-checker web service (http://www.mail-checker.com).

  • Validate the format of your email
  • Validate if the domain is responding
  • Validate if the email is not a temporary mail (like yopmail or others...)

This will be very helpful when you have to contact your users and you want to avoid errors causing lack of communication or want to block "spamboxes"

Installation

Add this line to your application's Gemfile:

gem 'mailchecker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mailchecker

Usage

Register your application in Mail-checker.com (http://www.mail-checker.com/apps/new). Generate the config file for the gem

$ rails generate mailchecker:install

Update the file (config/initializers/mailchecker.rb) with the values of your registered application (token and domain)

Now you have two ways to do the validation:

On the server side:

Add in your model the validation of your attribute for the email (hopefully email)

class User < ActiveRecord::Base
  mailchecker :email
end

On the client side:

Call the javascript lib on your email fields and do the stuff you need on the generated file

$ rails generate mailchecker:assets

Of course you can do the validation on the both side if you want

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 13 Dec 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.