Skip to content

Instantly share code, notes, and snippets.

@seyhunak
Created May 22, 2012 14:02
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save seyhunak/2769276 to your computer and use it in GitHub Desktop.
Save seyhunak/2769276 to your computer and use it in GitHub Desktop.
Devise, Sendgrid
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']
}
@piyushmaurya23
Copy link

Thank you very much for the Information.
Its works Great and really quick.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment