1

助けてください!sendgrid アドオンを動作させることができないようです。デバイスを電子メールの送信者として使用する方法はありますか? または、私は何を間違っていますか: これが私の重要な config/initializers/devise.rb コードです:

 Devise.setup do |config|
   # ==> Mailer Configuration

   #config.mailer_sender = "myapp.herokuapp.com"

   # Configure the class responsible to send e-mails.
   #config.mailer = "Devise::Mailer"

sendgrid を使用したい場合、これをコメント解除する必要がありますか?

environment/production.rb には次のものがあります。

 config.action_mailer.default_url_options = { :host => 'myapp.herokuapp.com' }
4

1 に答える 1

2

基本的な Sendgrid 構成は完了しましたか?

https://devcenter.heroku.com/articles/sendgrid

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
}
于 2013-10-20T02:46:27.730 に答える