# Email Logger
Logs all emails sent from rails to the database.
## Install
-
Put this line in your Gemfile:
``` rb gem 'email-logger' ```
-
Then bundle:
``` bundle ```
-
Generate the migration file by running the following command:
``` rails g email_logger ```
-
Run the generated migration
``` rake db:migrate ```
-
Remember to restart your server for the email logger initializer to load.
## Usage
No code changes are required. Any emails sent by ActionMailer will be logged to the email_logs table. You also have access to a standard AcitveRecord model that you can use to run queries on your email logs.
## Contributing
I encourage you to contribute to Email Logger. Feel free to send me pull requests.
## License
Email Logger is released under MIT License.