title: Rails 4 - Exception notifier doesn't send email if error
body: <p>I have a Rails 4 app and using the gem <code>exception_notification</code>. The gem is installed, in <code>config/environments/production.rb</code> is following:</p>
  
  <pre><code>  config.action_mailer.delivery_method = :sendmail
    config.action_mailer.perform_deliveries = true
    config.action_mailer.raise_delivery_errors = true
  
    config.middleware.use ExceptionNotification::Rack,
      :email =&gt; {
        :email_prefix =&gt; "[MyProj Error Report] ",
        :sender_address =&gt; %{"MyProj" &lt;no-reply@myproj.com&gt;},
        :exception_recipients =&gt; %w{info@myproj.com}
      }
  </code></pre>
  
  <p><code>no-reply@myproj.com</code> email address doesn't exist, <code>info@myproj.com</code> is my real email address.</p>
  
  <p>When an error will occur on production, I don't receive any email about it.</p>
  
  <p>What other configuration information do I need to add? </p>
  
  <p><strong>EDIT:</strong>
  <code>config/environments/production.rb</code>:</p>
  
  <pre><code>Rails.application.configure do
    ...
    MyApp::Application.config.middleware.use ExceptionNotification::Rack,
      :email =&gt; {
        :email_prefix =&gt; "[MyApp_Error] ",
        :sender_address =&gt; %{"notifier" &lt;notifier@myAppName.com&gt;},
        :exception_recipients =&gt; %w{your_email_id@gmail.com}
      }
  end
  </code></pre>
  
  <p>I modified the code with my real email addresses, but still no success. In log is nothing - when I want to fetched a record with a non-existing ID, like <code>website.com/articles/123345666777</code>, in the error log is only the following:</p>
  
  <pre><code>ActiveRecord::RecordNotFound (Couldn't find Article with 'id'=123345666777):
    app/controllers/articles_controller.rb:175:in `set_article'
  </code></pre>