Skip to content

Instantly share code, notes, and snippets.

@ShivaHuang
Created August 20, 2013 01:14
Show Gist options
  • Select an option

  • Save ShivaHuang/6276036 to your computer and use it in GitHub Desktop.

Select an option

Save ShivaHuang/6276036 to your computer and use it in GitHub Desktop.
ActionMailer::Base.smtp_settings = {
:address => 'smtp.sendgrid.net',
:port => '587',
:authentication => :plain,
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:domain => 'heroku.com'
}
ActionMailer::Base.delivery_method = :smtp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment