Skip to content
This repository was archived by the owner on May 3, 2025. It is now read-only.

jamesdphillips/mailgat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mailgat

Client wrapper for Mailgun API

Build Status Coverage Status

Installation

Add this line to your application's Gemfile:

gem 'mailgat'

And then execute:

$ bundle

Usage

Simply configure with your API key:

# config/initializers/mailgun.rb

Mailgat.configure do |config|
  config.api_key = "XYZ"
  config.public_key = "ABC" # optional
  config.adapter = :typoeus # optional; will default to your Faraday default adapter
end

The client will also try to use ENV["MAILGUN_API_KEY"] by default.

Email Validation

Wraps validation endpoint. Example usage:

email = Mailgunner::Email.new("jason@;gmail.com")
email.valid? # => false
email.suggestion # => "jason@gmail.com"

Testing

To run the tests:

$ rake spec

Contributing

Pull Requests more than welcome!

  1. Fork it ( https://github.com/jamesdphillips/mailgunner/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Simple client wrapper for Mailgun API using Faraday client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages