title: How to send emails in development environment using gmail SMTP and devise?
body: <p>I am trying to send emails while being on localhost and using devise (I need emails for user registration and password reset)</p>
  
  <p>I have put this in my environment.rb file</p>
  
  <pre><code>config.action_mailer.delivery_method = :smtp
  
  config.action_mailer.smtp_settings = {
      address: "smtp.gmail.com",
      port: 587,
      domain: "gmail.com",
      authentication: "plain",
      enable_starttls_auto: true,
      user_name: ENV["username"],
      password: ENV["password"]
  
  }
  
  config.action_mailer.default_url_options = { :host =&gt; 'localhost:3000' }
  </code></pre>
  
  <p>but I am not getting any mails and not seeing any error too (devise says ). </p>
  
  <ul>
  <li>What am I missing ?  </li>
  <li>Where can I see the log for emails (success or
  failure) ?</li>
  </ul>
  
  <p>EDIT - OK, it worked after adding this line </p>
  
  <pre><code>:openssl_verify_mode  =&gt; 'none'
  </code></pre>
  
  <p>Check this too <a href="https://stackoverflow.com/questions/11724906/rails-email-error-530-5-5-1-authentication-required/11725153#11725153">rails email error - 530-5.5.1 Authentication Required.  </a></p>