This blog has been archived. Our writing has moved to makandra cards.
The blog of , a Ruby on Rails development team

Mail Magnet makes your e-mails go where you want them

Remember that nifty way to override e-mail recipients we showed you a while ago? It evolved into a gem: Mail Magnet makes changing e-mail recipients for your staging environments even easier.

Just go with a sudo gem install mail_magnet and add something like this to your staging environment file:

config.gem 'mail_magnet'
config.after_initialize do
  ActionMailer::Base.override_recipients = 'overridden@example.com'
end

More information can be found at the gem's github page.

Growing Rails Applications in Practice
Check out our e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Recent posts

Our address:
makandra GmbH
Werner-von-Siemens-Str. 6
86159 Augsburg
Germany
Contact us:
+49 821 58866 180
info@makandra.de
Commercial register court:
Augsburg Municipal Court
Register number:
HRB 24202
Sales tax identification number:
DE243555898
Chief executive officers:
Henning Koch
Thomas Eisenbarth