title: NoMethodError (undefined method `timeout' for #<Net::SMTP smtp.gmail.com:587 started=false>):
body: <p>Rails 7
  not recieving email from action mailer. it forms the email then i get an error 500
  saying no method  timeout for #&lt;Net::SMTP smtp.gmail.com:587 started=false&gt;</p>
  <p>i have spent a few hours on this i have tried many different configurations, can someone guide me as to what i might be missing?</p>
  <p>below i am using my gmail with an app password enabled.
  also i am using the devise gem to generate the email.</p>
  <pre><code>  config.action_mailer.raise_delivery_errors = true
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.perform_caching = false
    config.action_mailer.default_url_options = { :host =&gt; 'localhost:3000', protocol: 
    'http' }
    
    ActionMailer::Base.delivery_method = :smtp
    config.action_mailer.perform_deliveries = true
    config.action_mailer.default :charset =&gt; &quot;utf-8&quot;
    ActionMailer::Base.smtp_settings = {
      :address              =&gt; &quot;smtp.gmail.com&quot;,
           :port                 =&gt; 587,
           :domain               =&gt; 'localhost:3000',
           :authentication       =&gt; :plain,
           :user_name            =&gt; '**********',
           :password             =&gt; '**********',
           :enable_starttls_auto =&gt; true,
  }
  </code></pre>