Skip to content

Commit 927725e

Browse files
authored
fix: update sendmail_settings to array format for Mail gem 2.8+ compatibility (#1599)
The commit just adds some commented-out config options for the mailer. It's up to the sysadmin to look at them and use them as needed.
1 parent 0c0656f commit 927725e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

BrainPortal/config/environments/production.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@
5757
# config.active_job.queue_name_prefix = "BrainPortal5_#{Rails.env}"
5858
config.action_mailer.perform_caching = false
5959

60+
# Use array option for sendmail for compatibility with mail gem 2.8+
61+
# Fixes #1588. Uncomment and adjust the location if sendmail is used.
62+
# The path can be overridden via CBRAIN_SENDMAIL_PATH for custom installs.
63+
# config.action_mailer.delivery_method = :sendmail
64+
# config.action_mailer.sendmail_settings = {
65+
# location: ENV.fetch('CBRAIN_SENDMAIL_PATH', '/usr/sbin/sendmail'),
66+
# arguments: ['-i']
67+
# }
68+
6069
# Ignore bad email addresses and do not raise email delivery errors.
6170
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
6271
# config.action_mailer.raise_delivery_errors = false

0 commit comments

Comments
 (0)