Sha256: 36e5655b9b8175bfff784a1c85f7cd366932f048afb59f8e75eb9f112d50608b

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

= Mail Magnet

Mail Magnet allows you to override e-mail recipients in ActionMailer so all mails go to a given address.
This is useful for staging environments where you want to test production-like mail delivery without sending e-mails to real users.

== Installation

Install the gem with

    sudo gem install mail_magnet

In the environment for which you'd like to override mail recipients:

    config.gem 'mail_magnet'
    config.after_initialize { ActionMailer::Base.override_recipients = 'overridden@example.com' }

Now all e-mail sent by your ActionMailers goes to 'overridden@example.com' (including CC and BCC recipients).
The original recipients will be quoted inside the mail body, like this:

    - - - Original recipients - - -
    To: original.to@example.com
    Cc: original.cc@example.com
    Bcc: original.bcc@example.com
    - - - - - - - - - - - - - - - -

    Original e-mail body goes here.

== Rails 3 compatibility

We cannot guarantee Rails 3 compatibility at this point, but we will upgrade the gem when Rails 3 is released.

=== Credits

Arne Hartherz

{makandra.com}[http://makandra.com/]

{gem-session.com}[http://gem-session.com/]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mail_magnet-0.2.0 README.rdoc