Ruby on rails 设计忘记电子邮件,heroku日志显示发送的电子邮件,但我不';我没有收到
Heroku的日志说邮件已经发送了,但我没有收到。在本地,我通过MailCatcher收到电子邮件 production.rbRuby on rails 设计忘记电子邮件,heroku日志显示发送的电子邮件,但我不';我没有收到,ruby-on-rails,heroku,devise,Ruby On Rails,Heroku,Devise,Heroku的日志说邮件已经发送了,但我没有收到。在本地,我通过MailCatcher收到电子邮件 production.rb config.action_mailer.default_url_options = {:host => 'rails-follow.herokuapp.com'} config.action_mailer.delivery_method = :smtp config.action_mailer.perform_deliveries = true config.a
config.action_mailer.default_url_options = {:host => 'rails-follow.herokuapp.com'}
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default :charset => "utf-8"
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: ENV["gmail.com"],
authentication: "plain",
enable_starttls_auto: true,
user_name: ENV["rorymunro123@gmail.com"],
password: ENV["PASSWORD"]
}
Heroku配置:
DATABASE_URL: postgres://onbifhsiwcwyzn:nm78UwuX1hKby32PZsfXSgEjqi@ec2-54-197-241-95.compute-1.amazonaws.com:5432
HEROKU_POSTGRESQL_SILVER_URL: postgres://onbifhsiwcwyzn:nm78UwuX1hKby32PZsfXSgEjqi@ec2-54-197-241-95.compute-1.amazonaws.com:5432/
LANG: en_US.UTF-8
RACK_ENV: production
RAILS_ENV: production
SECRET_KEY_BASE: Long number
提前谢谢。heroku配置的输出是什么??我在下面对它进行了排序