title: Net::SMTPAuthenticationError Rails Mailer Doesn't work with new email address?
body: <p>It worked for my other Gmail account 5 minutes ago so I know my config is all correct but now I'm getting an authentication error. I just made a new Gmail account and changed the username and password in my <code>development.rb</code> file and now it doesn't work.</p>
  
  <pre><code>config.action_mailer.default_url_options = { host: "locahost:3000" }
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
     :address              =&gt; "smtp.gmail.com",
     :port                 =&gt; 587,
     :enable_starttls_auto =&gt; true,
     :user_name            =&gt; ENV['gmail_username'],
     :password             =&gt; ENV['gmail_password'],
     :domain               =&gt; 'localhost',
     :authentication       =&gt; :plain
  }
  </code></pre>
  
  <p>This thread helped me last time but like I said I don't know what else to try..? <a href="https://stackoverflow.com/questions/18124878/netsmtpauthenticationerror-when-sending-email-from-rails-app-on-staging-envir">Net::SMTPAuthenticationError when sending email from Rails app (on staging environment)</a></p>
  
  <p>For my new Gmail account two-factor authentication is OFF, I turned ON the setting to allow less secure apps as I had to for my other account. AND I also went here <a href="https://accounts.google.com/DisplayUnlockCaptcha" rel="nofollow noreferrer">https://accounts.google.com/DisplayUnlockCaptcha</a> and allowed account access. Not sure what I missed...Probably something stupid.</p>