1
0
Fork 0
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:
Preston Marshall 2012-11-14 16:25:48 -06:00
parent 4a6d5fd940
commit 05904394a4

View file

@ -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