title: Rails 4 with MailCatcher and Devise gems
body: <p>I have an app with gem Devise. I need to confirm registration by email. In <strong>config/environment.rb</strong> I added this</p>
  
  <pre><code>ActionMailer::Base.delivery_method = :smtp
  ActionMailer::Base.smtp_settings = {
     :address =&gt; "smtp.gmail.com",
     :port =&gt; 587,
     :domain =&gt; "gmail.com",
     :authentication =&gt; 'plain',
     :user_name =&gt; "myappname@gmail.com",
     :password =&gt; "mypassword"
  }
  </code></pre>
  
  <p>In <strong>config/environment/development.rb</strong> added:</p>
  
  <pre><code>  config.action_mailer.default_url_options = { :host =&gt; 'localhost:3000' }
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = { :address =&gt; "127.0.0.1", :port =&gt; 1025 }
  </code></pre>
  
  <p>I want to catch all email by <strong>gem MailCatcher</strong>
  But when i submit to send confirmation instructions nothing happens in mailcatcher gem. But in console i have something like that:</p>
  
  <pre><code>Sent mail to abc@mail.ru (3757.4ms)
  Date: Thu, 21 Nov 2013 01:19:45 +0400
  From: metahall.app@egmail.com
  Reply-To: metahall.app@egmail.com
  To: abc@mail.ru
  Message-ID: &lt;528d2771ac762_27b352e85246162c@Active-pc.mail&gt;
  Subject: Confirmation instructions
  Mime-Version: 1.0
  Content-Type: text/html;
   charset=UTF-8
  Content-Transfer-Encoding: 7bit
  
  &lt;p&gt;Welcome abc@mail.ru!&lt;/p&gt;
  
  &lt;p&gt;You can confirm your account email through the link below:&lt;/p&gt;
  
  &lt;p&gt;&lt;a href="http://localhost:3000/users/confirmation?confirmation_token=hnrgdXgv4nARwiAzaXFy"&gt;Confirm my account&lt;/a&gt;&lt;/p&gt;
  
  Redirected to http://localhost:3000/users/sign_in
  Completed 302 Found in 4648ms (ActiveRecord: 59.8ms)
  </code></pre>
  
  <p>And have NOTHING in mailcathcer. What's wrong?</p>