title: Reset password email is not sent by Devise
body: <p>Rails 3.2.13, Ruby 1.9.3</p>
  
  <p>My Devise controller is working fine sending emails, with one exception: sending the reset password instructions email. </p>
  
  <p>When I click on the "Forgot your password?" link, I get the message:</p>
  
  <pre><code>You will receive an email with your password reset instructions in a few minutes.
  </code></pre>
  
  <p>But, I do not receive the email. Following is the relevant dump from the log file:</p>
  
  <pre><code>Started GET "/password/new.user" for 174.xx.xxx.xx at 2013-04-29 01:28:48 +0000
  Processing by Devise::PasswordsController#new as 
    BlogPost Load (0.5ms)  SELECT `blog_posts`.* FROM `blog_posts` 
    Rendered devise/_links.erb (1.0ms)
    Rendered devise/passwords/new.html.erb within layouts/application (23.1ms)
    Rendered layouts/_shim.html.erb (0.0ms)
    Rendered layouts/_header.html.erb (2.5ms)
    Rendered layouts/_promo_bar.html.erb (0.9ms)
    Rendered layouts/_footer.html.erb (2.6ms)
  Completed 200 OK in 54ms (Views: 51.2ms | ActiveRecord: 0.5ms)
  Started POST "/password" for 174.xx.xxx.xx at 2013-04-29 01:30:19 +0000
  Processing by Devise::PasswordsController#create as HTML
    Parameters: {"utf8"=&gt;"✓", "user"=&gt;{"email"=&gt;"emailaddress@outlook.com"}, "commit"=&gt;"Send me reset password instructions"}
    BlogPost Load (137.8ms)  SELECT `blog_posts`.* FROM `blog_posts` 
    User Load (82.4ms)  SELECT `users`.* FROM `users` WHERE `users`.`email` = 'emailaddress@outlook.com' LIMIT 1
    User Load (14.8ms)  SELECT `users`.* FROM `users` WHERE `users`.`reset_password_token` = 'NysDaribCpgNySc5Nmog' LIMIT 1
     (0.2ms)  BEGIN
     (99.0ms)  UPDATE `users` SET `reset_password_token` = 'NysDaribCpgNySc5Nmog', `reset_password_sent_at` = '2013-04-29 01:30:19', `updated_at` = '2013-04-29 01:30:19' WHERE `users`.`id` = 113
     (60.6ms)  COMMIT
    Rendered devise/mailer/reset_password_instructions.html.erb (1.3ms)
    Rendered devise/mailer/reset_password_instructions.text.erb (1.5ms)
  
  Sent mail to emailaddress@outlook.com (133ms)
  Date: Mon, 29 Apr 2013 01:30:21 +0000
  To: emailaddress@outlook.com
  Message-ID: &lt;517dcd2db584b_71bc6778701193@testsite-test.mail&gt;
  Subject: testsite Account Reset password instructions
  Mime-Version: 1.0
  Content-Type: multipart/alternative;
   boundary="--==_mimepart_517dcd2d93927_71bc677870116dc";
   charset=UTF-8
  Content-Transfer-Encoding: 7bit
  
  
  
  ----==_mimepart_517dcd2d93927_71bc677870116dc
  Date: Mon, 29 Apr 2013 01:30:21 +0000
  Mime-Version: 1.0
  Content-Type: text/plain;
   charset=UTF-8
  Content-Transfer-Encoding: 7bit
  Content-ID: &lt;517dcd2d9bfb9_71bc677870117a2@testsite-test.mail&gt;
  
  Hello emailaddress@outlook.com!
  
  A Request to change the password for this account has been received. If this is you, and you still want to change the password, you can do so by clicking on the link below.
  
  &lt;a href="http://test.testsitethefuture.com/password/edit?reset_password_token=NysDaribCpgNySc5Nmog"&gt;Change my password&lt;/a&gt;
  
  If you didn&amp;#x27;t request this, please ignore this email.
  
  
  ----==_mimepart_517dcd2d93927_71bc677870116dc
  Date: Mon, 29 Apr 2013 01:30:21 +0000
  Mime-Version: 1.0
  Content-Type: text/html;
   charset=UTF-8
  Content-Transfer-Encoding: 7bit
  Content-ID: &lt;517dcd2db365a_71bc677870118da@testsite-test.mail&gt;
  
  &lt;p&gt;Hello emailaddress@outlook.com!&lt;/p&gt;
  
  &lt;p&gt;A Request to change the password for this account has been received. If this is you, and you still want to change the password, you can do so by clicking on the link below.&lt;/p&gt;
  
  &lt;p&gt;&lt;a href="http://test.testsitethefuture.com/password/edit?reset_password_token=NysDaribCpgNySc5Nmog"&gt;Change my password&lt;/a&gt;&lt;/p&gt;
  
  &lt;p&gt;If you didn&amp;#x27;t request this, please ignore this email.&lt;/p&gt;
  
  
  ----==_mimepart_517dcd2d93927_71bc677870116dc--
  
  Redirected to http://test.testsitethefuture.com/login
  Completed 302 Found in 2520ms (ActiveRecord: 0.0ms)
  Started GET "/login" for 174.xx.xxx.xx at 2013-04-29 01:30:22 +0000
  Processing by Devise::SessionsController#new as HTML
    BlogPost Load (3.0ms)  SELECT `blog_posts`.* FROM `blog_posts` 
    Rendered devise/_links.erb (0.8ms)
    Rendered devise/sessions/new.html.erb within layouts/application (7.0ms)
    Rendered layouts/_shim.html.erb (0.0ms)
    Rendered layouts/_header.html.erb (2.2ms)
    Rendered layouts/_promo_bar.html.erb (1.2ms)
    Rendered layouts/_footer.html.erb (2.6ms)
  Completed 200 OK in 49ms (Views: 35.9ms | ActiveRecord: 3.0ms)
  </code></pre>
  
  <p>Any ideas of what I should be looking for?</p>
  
  <h1>environments/test.rb</h1>
  
  <pre><code>Myapp::Application.configure do
    config.cache_classes = false
    config.serve_static_assets = true
    config.static_cache_control = "public, max-age=3600"
    config.whiny_nils = true
    config.consider_all_requests_local = true
    config.action_controller.perform_caching = false
    config.action_dispatch.show_exceptions = false
    config.action_controller.allow_forgery_protection = false
    config.active_record.mass_assignment_sanitizer = :strict
    config.active_support.deprecation = :stderr
    config.action_mailer.default_url_options = {:host =&gt; 'myapp.com'}
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.perform_deliveries = true
    config.action_mailer.raise_delivery_errors = false
    config.action_mailer.default :charset =&gt; "utf-8"
    config.action_mailer.smtp_settings = {
        address: "smtp.gmail.com",
        port: 587,
        domain: "myapp.com",
        authentication: "plain",
        enable_starttls_auto: true,
        user_name: 'Admin@myapp.com',
        password: 'xxxxxxxxxxx'
    }
  end
  </code></pre>