Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Created November 17, 2016 15:30
Show Gist options
  • Select an option

  • Save nicolasblanco/b0e621497bfc0c103b6000f32bfcd507 to your computer and use it in GitHub Desktop.

Select an option

Save nicolasblanco/b0e621497bfc0c103b6000f32bfcd507 to your computer and use it in GitHub Desktop.
# config/environments/production.rb
config.action_mailer.smtp_settings = {
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:domain => 'your_application_name.herokuapp.com',
:address => 'smtp.sendgrid.net',
:port => 587,
:authentication => :plain,
:enable_starttls_auto => true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment