feat: add ability to use local sendmail binary to send emails

This commit is contained in:
Nicolas Cavigneaux 2023-04-05 14:32:37 +02:00
parent 4ea08d070b
commit 24a06a5e69
No known key found for this signature in database
GPG key ID: 278129B1DB19B66E

View file

@ -88,7 +88,7 @@ Rails.application.configure do
authentication: ENV.fetch("SMTP_AUTHENTICATION"),
enable_starttls_auto: ENV.fetch("SMTP_TLS").present?
}
elsif ENV['SENDMAIL_ENABLED'] = 'enabled'
elsif ENV['SENDMAIL_ENABLED'] == 'enabled'
config.action_mailer.delivery_method = :sendmail
config.action_mailer.sendmail_settings = {
location: ENV.fetch("SENDMAIL_LOCATION"),