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
- Fork it ( https://github.com/wireframe/email_prefixer/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request