Skip to content

Commit

Permalink
Setting up SendGrid.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobclewell committed Feb 22, 2013
1 parent f813be3 commit 234fb23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions config/environments/production.rb
Expand Up @@ -51,6 +51,16 @@
# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false

config.action_mailer.default_url_options = { :host => 'joggerlogger.net' }
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']
}

# Enable threaded mode
# config.threadsafe!

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Expand Up @@ -4,7 +4,7 @@
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
config.mailer_sender = "support@joggerlogger.net"

# Configure the class responsible to send e-mails.
# config.mailer = "Devise::Mailer"
Expand Down

0 comments on commit 234fb23

Please sign in to comment.