Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Provides :cache delivery method for ActionMailer

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO
Octocat-spinner-32 about.yml
Octocat-spinner-32 action_mailer_cache_delivery.gemspec
README
ActionMailerCacheDelivery
========================

Currently ActionMailer only supports :test, :smtp & :sendmail delivery methods.
This plugin enhances ActionMailer to support the :cache method, which behaves like
:test, except that the deliveries are marshalled to a temporary cache file, thus,
making them available to other processes.

This fork integrates with email_spec

Installation
============

  #$ cd RAILS_ROOT
  #$ ./script/plugin install git://github.com/ngty/action_mailer_cache_delivery.git

Example
=======

In your RAILS_ROOT/config/environments/test.rb, make sure you have the line:

  config.action_mailer.delivery_method = :cache

And that's all. To access the cached deliveries in another process, just do:

  ActionMailer::Base.cached_deliveries # array of TMail::Mail instances


Credits
=======

Many thanks to langalex, who suggested the birth of this plugin.


Copyright (c) 2009 [Ng Tze Yang, ngty77(at)gmail(dot)com], released under the MIT license
Something went wrong with that request. Please try again.