aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/delivery_method/smtp.rb
Commit message (Collapse)AuthorAgeFilesLines
* avoid generating invalid SMTP commands in ruby pre 1.9Michael Koziarski2009-11-281-1/+1
| | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> Conflicts: actionmailer/lib/action_mailer/base.rb
* Refactor ActionMailer layout and remove legacy one.José Valim2009-11-011-1/+1
|
* abstract all of the ActionMailer delivery methods into their own classes. ↵Matthew Rudy Jacobs2009-11-011-0/+31
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>