Class: ExceptionLog::Mailer

Inherits:
ActionMailer::Base
  • Object
show all
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,options = {})
	from = options[:from]
	to = options[:to]
	subject = "NOTICE,your site raise an exception!"
	body = body
	mail(:from=>from, :to => to, :subject => subject, :body => body)
end