From 4ae1d9d987264551f7a29ab05abcba1048f0aba8 Mon Sep 17 00:00:00 2001 From: Rene Date: Tue, 16 Sep 2025 21:42:18 +0200 Subject: [PATCH] test --- config/environments/production.rb | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 0e549a0..3cab867 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -85,18 +85,25 @@ Rails.application.configure do host: ENV['CANONICAL_HOST'], protocol: ENV['CANONICAL_HOST_PROTOCOL'] || 'https' } - config.action_mailer.asset_host = ENV['CANONICAL_HOST'] + config.action_mailer.asset_host = ENV['SMTP_DOMAIN'] config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { - address: ENV['SMTP_ADDRESS'], - port: (ENV['SMTP_PORT'] || 587).to_i, - domain: ENV['SMTP_DOMAIN'], + address: 'smtp.gmail.com', + port: 587, + domain: 'wedding.linepe.de', user_name: ENV['SMTP_USER_NAME'], password: ENV['SMTP_PASSWORD'], - authentication: ENV['SMTP_AUTHENTICATION'] || 'plain', - enable_starttls_auto: ENV['SMTP_ENABLE_STARTTLS_AUTO'] || 'true' + authentication: 'plain', + enable_starttls_auto: 'true' } + config.action_mailer.default_url_options = { host: 'https://wedding.linepe.de' } + config.action_mailer.delivery_method = :letter_opener + config.action_mailer.perform_deliveries = true + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = false # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found).