我在生产服务器上发送电子邮件时遇到问题.当邮件程序处理新邮件时,调用异常Net::OpenTimeout (execution expired)
我的smtp设置:
#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
Run Code Online (Sandbox Code Playgroud)
我的环境设置:
#production.rb
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = Settings.smtp.symbolize_keys
Run Code Online (Sandbox Code Playgroud)
来自日志:
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'
Run Code Online (Sandbox Code Playgroud) 这是使用Google云端硬盘创建的公开电子表格:https: //docs.google.com/spreadsheets/d/1hA4LKZn9yKoqnSzaI6_73GQSj_ZVpB3O0kC93QM98Vs/pubhtml
如何使用新的Google Spreadsheets API 3.0版将数据从Google电子表格检索到Javascript或JSON ?