heroku cedar スタックで sendgrid 経由でメールを送信しようとすると、次のエラーが発生しました。
ArgumentError (SMTP-AUTH requested but missing user name):
/environments/staging.rb の私の設定は次のとおりです。
config.action_mailer.delivery_method = :smtp
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_url_options = { :host => 'myapp' }
ActionMailer::Base.smtp_settings = {
:address => "smtp.sendgrid.net",
:port => "587",
:authentication => :plain,
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:domain => 'heroku.com'
}
私のSendgridパスワード/ユーザー名は、このページに従ってHerokuから取得されます
誰か提案はありますか?