Read more

Override e-mail recipients in ActionMailer

Henning Koch
September 08, 2010Software engineer at makandra GmbH

On modern Rails versions, prefer using the official API via ActionMailer::Base.register_interceptor.

Our gem Mail Magnet Show archive.org snapshot allows you to override e-mail recipients in ActionMailer so all mails go to a given address.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

This is useful for staging environments where you want to test production-like mail delivery without sending e-mails to real users.

Posted by Henning Koch to makandra dev (2010-09-08 20:37)