我在heroku上发布了该项目并使用了SendGrid服务,但是当我尝试在该站点上注册时,出现错误535身份验证失败:帐户已禁用。错误535,表明该邮件已被阻止,如何解除阻止?
我的设置
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
host = 'safe-beach-41470.herokuapp.com'
config.action_mailer.default_url_options = { host: host }
ActionMailer::Base.smtp_settings = {
:address => 'smtp.sendgrid.net',
:port => '587',
:authentication => :plain,
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:domain => 'heroku.com',
:enable_starttls_auto => true
}