Skip to content

Commit

Permalink
fixes issue #344-mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
haitzlm committed Apr 23, 2024
1 parent e732e44 commit bdcb728
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@
# Store the base url from where request is received.
config.action_mailer.default_url_options = { host: ENV['APP_PORTFOLIO_PRODUCTION_MAILER_URL'] }

#updated for tls and sendmail
config.action_mailer.smtp_settings = {
enable_starttls_auto: true,
port: 25,
# 'ca_file' is the path to the certificate authority file.
# In our case, it's a self-signed certificate. This tells Rails to trust this specific certificate.
ca_file: '/etc/ssl/certs/sendmail.pem'
}

# 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
Expand Down Expand Up @@ -99,9 +108,6 @@
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false

# Needed for mail to work in production
config.action_mailer.smtp_settings = { enable_starttls_auto: false }

# Change the Uglifier parsing engine
config.assets.js_compressor = Uglifier.new(harmony: true)
end

0 comments on commit bdcb728

Please sign in to comment.