I have problem with delivering emails on production server. When mailer processed new message, calls exception Net::OpenTimeout (execution expired)
My smtp settings:
#settings.yml production: smtp: address: smtp.gmail.com port: 587 domain: mydomain.net user_name: username@gmail.com password: password authentication: plain enable_starttls_auto: true
My environment settings:
#production.rb config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = Settings.smtp.symbolize_keys
From logs:
Sent mail to username@gmail.com (30010.1ms) I, [2014-10-15T12:59:22.371563 #19779] INFO -- : Completed 500 Internal Server Error in 30051ms F, [2014-10-15T12:59:22.373984 #19779] FATAL -- :. Net::OpenTimeout (execution expired): app/controllers/subscribers_controller.rb:9:in `create'