- Pony.mail(:to => @config[:to], :from => @config[:from],
- :subject => subject, :body => message, :via => :smtp)
- end
+ return unless subject
+
+ message << Array(backtrace).join("\n")
+
+ require "pony"
+
+ Pony.mail(:to => @config[:to], :from => @config[:from],
+ :subject => subject, :body => message, :via => :smtp)