Skip to content

Commit

Permalink
Switch Devise to SES (#6126)
Browse files Browse the repository at this point in the history
  • Loading branch information
iHiD authored Sep 8, 2023
1 parent 4534992 commit 41d4ece
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@
# SMTP setup
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
user_name: Exercism.secrets.smtp_username,
password: Exercism.secrets.smtp_password,
address: Exercism.secrets.smtp_address,
domain: Exercism.secrets.smtp_address,
port: Exercism.secrets.smtp_port,
authentication: Exercism.secrets.smtp_authentication
user_name: Exercism.secrets.transactional_smtp_username,
password: Exercism.secrets.transactional_smtp_password,
address: Exercism.secrets.transactional_smtp_address,
domain: Exercism.secrets.transactional_smtp_address,
port: Exercism.secrets.transactional_smtp_port,
authentication: Exercism.secrets.transactional_smtp_authentication
}
end

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# 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 = "The Exercism Team <hello@exercism.io>"
config.mailer_sender = "The Exercism Team <hello@#{Exercism.secrets.transactional_smtp_sending_domain}>"

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

0 comments on commit 41d4ece

Please sign in to comment.