aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/delivery_method_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* abstract all of the ActionMailer delivery methods into their own classes. ↵Matthew Rudy Jacobs2009-11-011-4/+32
| | | | | | | | | | | | | | | | | | | | | | thereby the following are equivalent ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.delivery_method = ActionMailer::DeliveryMethod::Smtp we could equally set our own custom object as long as it provides the instance method :perform_delivery(mail) eg. class MySmsDeliveryMethod def perform_delivery(mail) Sms.send(mail['to'], mail['body']) end end MySmsMailer.delivery_method = MySmsDeliveryMethod.new Signed-off-by: José Valim <jose.valim@gmail.com>
* Adds a :file delivery_method to save email to a file on diskEric Davis2009-08-081-0/+22
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2438 state:committed]
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow ActionMailer subclasses to individually set their delivery method (so ↵David Heinemeier Hansson2007-11-071-0/+51
two subclasses can have different delivery methods) (closes #10033) [zdennis] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de