Skip to content

Commit

Permalink
mail host as env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Oct 17, 2024
1 parent a6f683f commit 2c9f1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@

# set delivery method to :smtp, :sendmail or :test
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { address: 'localhost', port: 4025 }
config.action_mailer.default_url_options = { host: 'etd.library.yorku.ca' }
config.action_mailer.smtp_settings = { address: ENV['SMTP_HOST'], port: ENV['SMTP_PORT'] }
config.action_mailer.default_url_options = { host: ENV['HOST'] }
# Inserts middleware to perform automatic connection switching.
# The `database_selector` hash is used to pass options to the DatabaseSelector
# middleware. The `delay` is used to determine how long to wait after a write
Expand Down

0 comments on commit 2c9f1df

Please sign in to comment.