Skip to content

Commit

Permalink
use HOSTNAME for the url host
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry committed Aug 13, 2021
1 parent ae20a3e commit 8a638b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
host: "localhost"
}
else
action_mailer.default_url_options = {
host: ENV["HOSTNAME"]
}
action_mailer.delivery_method = :smtp
action_mailer.tap do |action_mailer|
action_mailer.raise_delivery_errors = true
Expand Down

0 comments on commit 8a638b7

Please sign in to comment.