I am moving from rails 2.3 to rails 3.1, I am trying to send an email when an exception is thrown. I am using exception_notification gem.
The rest of the emails work. But the exception mail does not start.
Below are the settings in my staging.rb file.
config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true
and the following code in application.rb
C::Application.config.middleware.use ExceptionNotification::Rack, :email => { :email_prefix => "[#{Rails.env.to_s.upcase} Error] ", :sender_address => %{"Exception Notifier " <email_id>}, :exception_recipients => %w{email_id} }
I am not sure why the letter does not start, and I do not see any errors. Any help would be given, thanks.
source share