This plugin was originally based on action-mailer-queue by Andrew Beam. It has been rewritten for Rails 3.
class MyMailer < ActionMailer::Base # Tell the mailer to deliver with active record self.delivery_method = :active_record def test mail(:to => "firstname.lastname@example.org", :from => "email@example.com") end end # Creates a records in the emails table (see spec/schema.rb for structure). MyMailer.test.deliver
Andrew Beam - original author