Skip to content

Commit

Permalink
Use Sendgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMitchell committed Jan 3, 2023
1 parent 56db7f5 commit 82b962f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@
# Devise Emails
config.action_mailer.default_url_options = { host: 'deschtimes.com' }

# Sendgrid Configuration
ActionMailer::Base.smtp_settings = {
:user_name => 'apikey',
:password => ENV['SENDGRID_API_KEY'],
:domain => 'deschtimes.com',
:address => 'smtp.sendgrid.net',
:port => 587,
:authentication => :plain,
:enable_starttls_auto => true
}

# Active Storage links for Webhooks
Rails.application.routes.default_url_options[:host] = 'deschtimes.com'
end

0 comments on commit 82b962f

Please sign in to comment.