Ruby on rails 我无法在本地和生产中收到Desive忘记发送的电子邮件。在当地,它说它的sent和heroku日志显示';交付时阻塞';
production.rbRuby 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",
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?