Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/59.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 我无法在本地和生产中收到Desive忘记发送的电子邮件。在当地,它说它的sent和heroku日志显示';交付时阻塞';_Ruby On Rails_Heroku_Devise - Fatal编程技术网

Ruby on rails 我无法在本地和生产中收到Desive忘记发送的电子邮件。在当地,它说它的sent和heroku日志显示';交付时阻塞';

Ruby on rails 我无法在本地和生产中收到Desive忘记发送的电子邮件。在当地,它说它的sent和heroku日志显示';交付时阻塞';,ruby-on-rails,heroku,devise,Ruby On Rails,Heroku,Devise,production.rb config.action_mailer.default_url_options = {:host => 'rails-follow.herokuapp.com'} config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "stmp.rails-follow.herokuapp.com",

production.rb

    config.action_mailer.default_url_options = {:host => 'rails-follow.herokuapp.com'}
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
  :address => "stmp.rails-follow.herokuapp.com",
  :port    => 25,
  :domain  => 'rails-follow.herokuapp.com'
}
设计

config.mailer_sender = 'rorymunro123@gmail.com'

 # Configure the class responsible to send e-mails.
 config.mailer = 'Devise::Mailer'

任何帮助都将不胜感激

现在我可以在本地运行,但不能在生产环境中运行。我认为Heroku没有配置为SMTP服务器。您是否尝试过一些免费的电子邮件后端(Heroku官方支持),如Mandrill或Sendgrid?