Rails 3.2 ruby 1.9.3 exception_notification in staging not able to send mail

64 Views Asked by At

I am applying exception notification gem for rails 3.2 application.

Following is my code

gemfile

gem 'exception_notification'

config/environments/staging.rb

Rails.application.config.middleware.use ExceptionNotification::Rack,  email: {
 email_prefix: '[Exception] ',
 sender_address: %('HPAE - Error' <[email protected]> ),
 exception_recipients: %w([email protected])
}

It runs perfectly in my local but on server in staging its not working. I am not receiving any error mails from staging.

Do I need to change my code or do any setting?

Thanks,

0

There are 0 best solutions below