我sendgrid
以电子邮件发件人的身份添加到了Heroku上的应用程序中,但是每次用户尝试注册时,都会出现错误,显示文本“ www.mydomain.com" is currently unable to handle this request"
。Heroku日志不显示任何错误。这是我的production.rb
:
config.action_mailer.smtp_settings = {
:address => "smtp.sendgrid.net",
:port => "587",
:authentication => :plain,
:user_name => "<%= ENV['SENDGRID_USERNAME'] %>",
:password => "<%= ENV['SENDGRID_PASSWORD'] %>",
:domain => "mydomain.com",
:enable_starttls_auto => true
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句