Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1 KB

File metadata and controls

42 lines (29 loc) · 1 KB

Draft Box

A web interface for browsing Ruby on Rails sent emails with support for distributed environments. The library is using database for storing e-mail messages and attachments to present them on the dedicated dashboard and work correctly with applications based on multiple workers. Supported database engines: PostgreSQL, MySQL, and SQLite.

Getting started

Install the library and make it available for the development environment:

group :development do
  gem "draft_box"
end

Run the generator to create migration files:

rails generate draft_box:install

Run migrations:

rails db:migrate

Configuration

Edit config/environments/development.rb and ensure that you are using the right delivery method for emails:

config.action_mailer.delivery_method = :draft_box
config.action_mailer.perform_deliveries = true

Add to config/routes.rb:

Your::Application.routes.draw do
  mount DraftBox::Engine, at: "/draft_box" if Rails.env.development?
end