Build Status Coverage Status Code Climate

EmailPrefixer

Automatically prefix all delivered emails with the application name and Rails environment. A helpful configuration for setting up email filters for non-production emails and ensuring consistency across all email deliveries.

Examples:

[MyApp] Forgot Password
[MyApp STAGING] Forgot Password

Based upon this coderwall protip

Installation

Add this line to your application's Gemfile:

gem 'email_prefixer'

Configuration

Custom Application Name

EmailPrefixer automatically infers the application name from the Rails application class name, but this can be changed using a standard config/initializer.

Example:

# config/initializers/email_prefixer.rb
EmailPrefixer.configure do |config|
  config.application_name = 'MyCompany'
end

Contributing

  1. Fork it ( https://github.com/wireframe/email_prefixer/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request