diff --git a/lib/exception_notifier/notifier.rb b/lib/exception_notifier/notifier.rb index a225c82f..2284984d 100644 --- a/lib/exception_notifier/notifier.rb +++ b/lib/exception_notifier/notifier.rb @@ -65,7 +65,7 @@ def exception_notification(env, exception) end subject = compose_subject(exception, @kontroller) - mail(:to => @options[:exception_recipients], :from => @options[:sender_address], :subject => subject) do |format| + mail(:to => @options[:exception_recipients], :from => @options[:sender_address], :subject => subject, :tag => "exception-notification") do |format| format.text { render "#{mailer_name}/exception_notification" } end end @@ -79,7 +79,7 @@ def background_exception_notification(exception, additional = {}) @sections = %w(additional_context backtrace) subject = compose_subject(exception) - mail(:to => @options[:exception_recipients], :from => @options[:sender_address], :subject => subject) do |format| + mail(:to => @options[:exception_recipients], :from => @options[:sender_address], :subject => subject, :tag => "exception-notification") do |format| format.text { render "#{mailer_name}/background_exception_notification" } end.deliver end