无法使用动作邮件程序生成发送邮件

时间:2016-03-08 13:08:32

标签: ruby-on-rails google-compute-engine actionmailer

我可以在开发模式下发送邮件,但它在生产模式下失败并出现以下错误。 SocketError(getaddrinfo:名称或服务未知)

我的动作邮件设置是

 config.action_mailer.delivery_method = :smtp

  config.action_mailer.smtp_settings = {
      :address              => 'smtp.listup.co.in',
      :port                 => 587,
      :domain               =>'listup.co.in',
      :user_name            => ENV['username'],
      :password             => ENV['password'],
      :authentication       => 'plain',
      :enable_starttls_auto => true
  }

我的代码部署在谷歌计算引擎上。我尝试使用相同的错误更改端口。

0 个答案:

没有答案
相关问题