DEV: replace mailcatcher references with mailhog (#14500)

This commit is contained in:
Arpit Jalan
2021-10-05 15:48:06 +05:30
committed by GitHub
parent fbe9cd49b6
commit fbeb854ffc
6 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -8,5 +8,5 @@ Discourse::Application.initialize!
# When in "dev" mode, ensure we won't be sending any emails
if Rails.env.development? && ActionMailer::Base.smtp_settings != { address: "localhost", port: 1025 }
fail "In development mode, you should be using mailcatcher otherwise you might end up sending thousands of digest emails"
fail "In development mode, you should be using mailhog otherwise you might end up sending thousands of digest emails"
end
+1 -1
View File
@@ -42,7 +42,7 @@ Discourse::Application.configure do
config.handlebars.precompile = true
# we recommend you use mailcatcher https://github.com/sj26/mailcatcher
# we recommend you use mailhog https://github.com/mailhog/MailHog
config.action_mailer.smtp_settings = { address: "localhost", port: 1025 }
config.action_mailer.raise_delivery_errors = true
+1 -1
View File
@@ -29,7 +29,7 @@ Discourse::Application.configure do
# Specifies the header that your server uses for sending files
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# we recommend you use mailcatcher https://github.com/sj26/mailcatcher
# we recommend you use mailhog https://github.com/mailhog/MailHog
config.action_mailer.smtp_settings = { address: "localhost", port: 1025 }
# Send deprecation notices to registered listeners