Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rails gem that logs outgoing mail to a database table
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/models Added attr_accessible
config/initializers
lib
.gitignore
Gemfile
README.md
Rakefile
mailbag.gemspec

README.md

mailbag

This gem logs email sent by a Rails application to a database table.

Installation

In your Gemfile, add this line:

gem "mailbag"

Then, run bundle install.

Run the generator and migrate:

rails g mailbag
rake db:migrate

Usage

You don't have to do anything. Any mail sent out by ActionMailer will be logged to the email_logs table. EmailLog is a standard ActiveRecord model that you can use to interact with your email log.

Something went wrong with that request. Please try again.