# File lib/merb-mailer/mail_controller.rb, line 276 def dispatch_and_deliver(method, mail_params) @mailer = self.class._mailer_klass.new(mail_params) @mail = @mailer.mail @method = method # dispatch and render use params[:action], so set it self.action_name = method body = _dispatch method if !@mail.html.blank? || !@mail.text.blank? @mailer.deliver! Merb.logger.info "#{method} sent to #{@mail.to} about #{@mail.subject}" else Merb.logger.info "#{method} was not sent because nothing was rendered for it" end end