From 25b03987ff0b00648d6a072703e65b9da3062c33 Mon Sep 17 00:00:00 2001 From: Torsten Date: Fri, 13 Jan 2023 22:26:58 +0200 Subject: [PATCH] configure mailer --- config/credentials.yml.enc | 2 +- config/environments/production.rb | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/config/credentials.yml.enc b/config/credentials.yml.enc index 6e7c62e..51accfc 100644 --- a/config/credentials.yml.enc +++ b/config/credentials.yml.enc @@ -1 +1 @@ -jkcNarcfRswF7FzOvG9cD+GNjt5Vv+MIndhtC8sFK0VUufpbp+ONzgQeIV9p8hgjPf32/jZson9wE6BWBcCDWTpQkZ5I+K1OiseKxLgYM+748rspCn/khgAk7/6JhpqEJ1CKCnYPiBLye6uS41kHYhvDz4ymkHysCiNqH9lmih3sUtgUzVT8IK2g0u7eQLoLM4rfMApmdFryxfNrZ1cg9CvfSyG81Nb5hIVcX/533Z2fE9OWorfosmYM9D4w9Oi7wDtqh5eqySIciT1yyhyPC+YkXjzkRDFc3Q8BgVerWvWQ1tGezbssT1c8cYY2DwqE1k32t68fY29Hym6ahGOqvd7bxKMt+8/anVXd2CW7XPub8BnYfgPyXfKR+HCQsh3U3Ho6sg/42JJDF09aC740lZR+F5D8iEHeYAcHtpF4qg0MowYwwNMqX8dqHq+h3VKa7p6zjkKbWBDMxP1SaalCmEv1LjKWB1rEfhm8oqyMPitLqie09+dT2OT+3za4JGVeqTK+B9w02jI+H7JC8fOC7mqnM9eLcUHCyDI9BLwFjLuO9VVYJrCExlJDVApg/ovBL7jVm7Ygq4ml4I+HHvhKU64lTm3d3JVzZhX42u90uYlxgZM0nKrbVbXoiNQGJFvpkWz5wvzwifKqzXnkHJSABXFj6FCBCj8=--4X57Al8e3Y5mZKpt--eipYQLkH8EhKQ7m+U16q6Q== \ No newline at end of file +OaKTik0EStvonrwTuP2M/z94Dn97BOuyOeP0zCgiKOG0C3K9D7XLKwhboSBBprkWBxAadS3U+JXKr+uF3J72fE3DYO2O1Ruddx60CWi4XnIsUi2TUKDgHvvRJMMCp1hbclggixuqH3r5d+YVoFeEtp0XBE1JZscUSDEEG8m7+5WeBnuKa+cWu1OVFtgqn68AAD4Jr8wEp8agNIZlvZk/77nO5jmIpgzWlVsIgznDDdyZW7IK6jdVxKBrnu6HvfJqt8Np9nZnsQ+EtwioCQO5nvfYtM5lrHVOvVKxVnmaycKvC42Vh2MH8IUO2mQZAX5543FPBovmxRcQFqDgrHr6C4NQ2x7UHRxeD5RD6A9fZ4RaEAxKVRYWXL3YVkz+HUutJ+bKJMaMlPwnEBfYnshFJdI5ca57UpiUY+c09WikIDMjZjtCos4obwJbIX8Oy9/ClhSWEkoJBr1eZ3ieUZz66gKZvfiKgNhMnE/KBCj3CqUBmHLi5XfmKqdOlAf+EoZDm4XRbXd4BanmheJ4FWJeIQhFXM7lwIvv1q9PiuBP60Ss95dWQR4q7NZiu3LKkfAodZkgbPjPNzmUWlZsq0q4ze0Koz1XGki9vkx3hz7DbWnHehSuJw2cHKOTJuEfi2b2bXnsVi+vV/+naczyQn9mzU0SG9WHTJZVKUiT8fKnS2v5VO/c3cbYGGylJRNxS0EQ50FDSqgVQgbeI/08BivcBxnGq9beXyuaeqkGE4JFeI9i6gJrU2FfsjKdTjw6T8TwUV6qP0/MJOtSo2UaP4aIFAV7U90+3y0B+mUj2M5JtfpFWMKWcWMNsIHqowINz6H4bnV/XQ==--u9baZdFij677MR3P--ozXUG3v6hK2XQxftbhMiQQ== \ No newline at end of file diff --git a/config/environments/production.rb b/config/environments/production.rb index b74ecd3..ee91faf 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -55,11 +55,24 @@ Rails.application.configure do # config.active_job.queue_adapter = :resque # config.active_job.queue_name_prefix = "hubfeenix_fi_production" - config.action_mailer.perform_caching = false - # Ignore bad email addresses and do not raise email delivery errors. - # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false + config.action_mailer.smtp_settings = { + :address => Rails.application.credentials.mail_server, + :port => 465, + :domain => Rails.application.credentials.domain_name, + :user_name => Rails.application.credentials.admin_email, + :password => Rails.application.credentials.admin_pass, + :ssl => true, + :tls => true, + :authentication => :login, + :enable_starttls_auto => true + } + + # ActionMailer Config + config.action_mailer.default_url_options = { :host => Rails.application.credentials.domain_name } + config.action_mailer.delivery_method = :smtp + config.action_mailer.perform_deliveries = true + config.action_mailer.raise_delivery_errors = true # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found).