MailGrabber is yet another solution to inspect sent emails.
It has two part:
- delivery method to grab emails and store into a database
- simple rack web interface to check those emails
Installation
Add this line to your application's Gemfile:
gem 'mail_grabber'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install mail_grabber
Usage
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
To release a new version:
- Update CHANGELOG.md
- Update the version number in
version.rb
manually or usegem-release
gem and rungem bump -v major|minor|patch|rc|beta
. - Build gem with
bundle exec rake build
. - Run
bundle install
to update gemfiles and commit the changes. - Run
bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the.gem
file to rubygems.org.
Contributing
Bug reports and pull requests are welcome. Please read CONTRIBUTING.md if you would like to contribute to this project.
Inspiration
- MailCatcher
- letter_opener_web
- Rack
- Rack::Router
- Sidekiq
- and other solutions regarding in this topic
License
The gem is available as open source under the terms of the MIT License.