Skip to content

Commit

Permalink
tag the outgoing messages for use with Postmark
Browse files Browse the repository at this point in the history
  • Loading branch information
hwrd committed May 17, 2012
1 parent 31468be commit c8b41bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/exception_notifier/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c8b41bd

Please sign in to comment.