Ruby
#1 Compare This branch is 6 commits ahead, 1 commit behind beam:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
init.rb

README.rdoc

ActionMailerQueue

This plugin was originally based on action-mailer-queue by Andrew Beam. It has been rewritten for Rails 3.

Usage

class MyMailer < ActionMailer::Base
  # Tell the mailer to deliver with active record
  self.delivery_method = :active_record

  def test
    mail(:to => "test@test.com", :from => "test@test.com")
  end
end

# Creates a records in the emails table (see spec/schema.rb for structure).
MyMailer.test.deliver

Contributors

  • Jonathan Viney

  • Andrew Beam - original author