Project

mailbin

0.01
The project is in a healthy, maintained state
Mailbin collects emails from Rails ActionMailer in development for testing.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

📬 Mailbin

Preview emails sent from ActionMailer in the browser.

Mailbin writes emails to tmp/mailbin for easy access and testing.

📦 Installation

Add Mailbin to your Gemfile:

bundle add "mailbin"

Configure Rails to send emails to Mailbin:

# config/environments/development.rb
config.action_mailer.delivery_method = :mailbin
config.action_mailer.perform_deliveries = true

Add the routes to view emails with MailBin:

Rails.application.routes.draw do
  mount Mailbin::Engine => :mailbin if Rails.env.development?
end

Usage

Open http://localhost:3000/mailbin to view your emails in development.

Contributing

If you have an issue you'd like to submit, please do so using the issue tracker in GitHub. In order for us to help you in the best way possible, please be as detailed as you can.

If you'd like to open a PR please make sure the following things pass:

bin/rails db:test:prepare
bin/rails test
bin/rubocop -A

License

The gem is available as open source under the terms of the MIT License.