File tree Expand file tree Collapse file tree 6 files changed +11
-7
lines changed Expand file tree Collapse file tree 6 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 314
314
loofah (2.13.0 )
315
315
crass (~> 1.0.2 )
316
316
nokogiri (>= 1.5.9 )
317
- mail (2.7.1 )
317
+ mail (2.8.0 )
318
318
mini_mime (>= 0.1.1 )
319
+ net-imap
320
+ net-pop
321
+ net-smtp
319
322
marcel (1.0.2 )
320
323
matrix (0.4.2 )
321
324
memoist (0.16.2 )
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ module ActionMailer
439
439
#
440
440
# * <tt>sendmail_settings</tt> - Allows you to override options for the <tt>:sendmail</tt> delivery method.
441
441
# * <tt>:location</tt> - The location of the sendmail executable. Defaults to <tt>/usr/sbin/sendmail</tt>.
442
- # * <tt>:arguments</tt> - The command line arguments. Defaults to <tt>-i </tt> with <tt>-f sender@address</tt>
442
+ # * <tt>:arguments</tt> - The command line arguments. Defaults to <tt>%w[ -i ] </tt> with <tt>-f sender@address</tt>
443
443
# added automatically before the message is sent.
444
444
#
445
445
# * <tt>file_settings</tt> - Allows you to override options for the <tt>:file</tt> delivery method.
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ module DeliveryMethods
31
31
32
32
add_delivery_method :sendmail , Mail ::Sendmail ,
33
33
location : "/usr/sbin/sendmail" ,
34
- arguments : "-i"
34
+ # See breaking change in the mail gem - https://github.com/mikel/mail/commit/7e1196bd29815a0901d7290c82a332c0959b163a
35
+ arguments : Gem ::Version . new ( Mail ::VERSION . version ) >= Gem ::Version . new ( "2.8.0" ) ? %w[ -i ] : "-i"
35
36
36
37
add_delivery_method :test , Mail ::TestMailer
37
38
end
@@ -46,7 +47,7 @@ module ClassMethods
46
47
#
47
48
# add_delivery_method :sendmail, Mail::Sendmail,
48
49
# location: '/usr/sbin/sendmail',
49
- # arguments: '-i'
50
+ # arguments: %w[ -i ]
50
51
def add_delivery_method ( symbol , klass , default_options = { } )
51
52
class_attribute ( :"#{ symbol } _settings" ) unless respond_to? ( :"#{ symbol } _settings" )
52
53
public_send ( :"#{ symbol } _settings=" , default_options )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class DefaultsDeliveryMethodsTest < ActiveSupport::TestCase
41
41
test "default sendmail settings" do
42
42
settings = {
43
43
location : "/usr/sbin/sendmail" ,
44
- arguments : "-i"
44
+ arguments : %w[ -i ]
45
45
}
46
46
assert_equal settings , ActionMailer ::Base . sendmail_settings
47
47
end
Original file line number Diff line number Diff line change @@ -839,7 +839,7 @@ config.action_mailer.delivery_method = :sendmail
839
839
# Defaults to:
840
840
# config.action_mailer.sendmail_settings = {
841
841
# location: '/usr/sbin/sendmail',
842
- # arguments: '-i'
842
+ # arguments: %w[ -i ]
843
843
# }
844
844
config.action_mailer.perform_deliveries = true
845
845
config.action_mailer.raise_delivery_errors = true
Original file line number Diff line number Diff line change @@ -1910,7 +1910,7 @@ The default value depends on the `config.load_defaults` target version:
1910
1910
Allows detailed configuration for the ` sendmail` delivery method. It accepts a hash of options, which can include any of these options:
1911
1911
1912
1912
* ` :location` - The location of the sendmail executable. Defaults to ` /usr/sbin/sendmail` .
1913
- * ` :arguments` - The command line arguments. Defaults to ` -i ` .
1913
+ * ` :arguments` - The command line arguments. Defaults to ` %w[ -i ] ` .
1914
1914
1915
1915
# ### `config.action_mailer.raise_delivery_errors`
1916
1916
You can’t perform that action at this time.
0 commit comments