Trumail
API wrapper for the free and open source Trumail email validation/verification system. You can also self-host the system on your own server. Find out more here: https://github.com/sdwolfe32/trumail
Installation
Add this line to your application's Gemfile:
gem 'trumail'
And then execute:
$ bundle
Or install it yourself as:
$ gem install trumail
Usage
Lookup Verification
# Basic Lookup
lookup = Trumail::Lookup.new('[email protected]').verify
lookup = Trumail::Lookup.verify('[email protected]')
# Custom Host
lookup = Trumail::Lookup.verify('[email protected]', host: 'https://verifier.com',
format: :xml)
Lookup Methods
lookup.url => 'https://trumail.io/json/[email protected]'
lookup.hash => { 'address' => '[email protected]', 'catchAll' => true, ... }
# Data Methods
lookup.address => '[email protected]'
lookup.username => 'test'
lookup.domain => 'email.com'
lookup.catch_all? => true
lookup.deliverable? => false
lookup.disposable? => true
lookup.full_inbox? => false
lookup.gravatar? => true
lookup.host_exists? => false
Contributing
Your contribution is welcome.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request