From c8b41bda3a9ecff03d22762740b83ef7da120bf1 Mon Sep 17 00:00:00 2001 From: Brian Howenstein Date: Thu, 17 May 2012 15:08:13 -0400 Subject: [PATCH] tag the outgoing messages for use with Postmark --- lib/exception_notifier/notifier.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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