title: Rails mailer not working Net::OpenTimeout
body: <p>Rails Server is running in local Mac.
  Mailer works and sends mail in my office network, but doesn't work in my home (broadband) network. Some network issue?</p>
  
  <p>Here is the error: </p>
  
  <pre><code>Net::OpenTimeout
  </code></pre>
  
  <p>Here is my setting in development.rb:  </p>
  
  <pre><code>config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
      address: 'smtp.gmail.com',
      port: 587,
      domain: 'gmail',
      authentication: 'plain',
      user_name:  '***@gmail.com',
      password: '******',
      enable_starttls_auto: true
    }
    config.action_mailer.raise_delivery_errors = true
    config.action_mailer.perform_deliveries = true
    #config.action_mailer.delivery_method = :test
    host = 'localhost:3000'
    config.action_mailer.default_url_options = { host: host, protocol: 'https' }
  </code></pre>
  
  <p>I have tried using different ports but no help. What could be the issue, or how can I debug it?</p>