Sends mail via a MailController (a tutorial can be found in the MailController docs).
klass | The mailer class. |
method<~to_s> | The method to call on the mailer. |
mail_params | Mailing parameters, e.g. :to and :cc. See Merb::MailController#dispatch_and_deliver for details. |
send_params | Params to send to the mailer. Defaults to the params of the current controller. |
# Send an email via the FooMailer's bar method. send_mail FooMailer, :bar, :from => "foo@bar.com", :to => "baz@bat.com"
# File lib/merb-mailer/mailer_mixin.rb, line 20 20: def send_mail(klass, method, mail_params, send_params = nil) 21: klass.new(send_params || params, self).dispatch_and_deliver(method, mail_params) 22: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.