Class: ExceptionLog::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ExceptionLog::Mailer
- Defined in:
- lib/exception_log/mailer.rb
Instance Method Summary collapse
Instance Method Details
#exception_mail(body, options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/exception_log/mailer.rb', line 5 def exception_mail(body, = {}) from = [:from] to = [:to] subject = "NOTICE,your site raise an exception!" body = body mail(:from=>from, :to => to, :subject => subject, :body => body) end |