Skip to content

Instantly share code, notes, and snippets.

@pmkhoa
Forked from seyhunak/devise.rb
Created July 31, 2014 22:06
Show Gist options
  • Save pmkhoa/ebddcb12e35a1f5872f0 to your computer and use it in GitHub Desktop.
Save pmkhoa/ebddcb12e35a1f5872f0 to your computer and use it in GitHub Desktop.
config/initializers/devise.rb :
config.mailer_sender = "mail-to-send@from.com"
config/environments/production.rb :
config.action_mailer.default_url_options = { :host => 'your.websitedomain.com' }
ActionMailer::Base.smtp_settings = {
:address => "smtp.sendgrid.net",
:port => "25",
:authentication => :plain,
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:domain => ENV['SENDGRID_DOMAIN']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment