vendredi 24 juillet 2015

Rails Tutorial 10.3 Email In Production Verification Emails Not Sending

Using the Rails Tutorial by Hartl the Password Reset and Account Activation emails don't deploy to the user emails.
Here's the content of the config/environments/production.rb file:

  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.delivery_method = :smtp
  host = 'rails-tutorial-sample-app-ch-5.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         =>  'rails-tutorial-sample-app-ch-5.herokuapp.com',
    :enable_starttls_auto => true
  }


Where did I mess up?
How do I check the server log to confirm that the emails were sent out from the server?

Aucun commentaire:

Enregistrer un commentaire