mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
DEV: replace mailcatcher references with mailhog (#14500)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user