mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Allow other fields that specify recipients, not just "to"
This commit is contained in:
parent
4a6d5fd940
commit
05904394a4
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ module Sidekiq
|
|||
msg = target.send(method_name, *args)
|
||||
# The email method can return nil, which causes ActionMailer to return
|
||||
# an undeliverable empty message.
|
||||
msg.deliver if msg && msg.to && msg.from
|
||||
msg.deliver if msg && (msg.to || msg.cc || msg.bcc) && msg.from
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue