We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f830fe commit 979b3bcCopy full SHA for 979b3bc
1 file changed
lib/notifier.rb
@@ -61,8 +61,16 @@ def self.send_emails(notifications)
61
end
62
attachments_file_name_list = attachments_file_name_list[0..-3]
63
64
-
+ old_to = m[:to]
65
+ m[:to] = old_to.to_s.split(",").map(&:strip).reject(&:empty?)
66
+ old_reply_to = nil
67
+ if m[:reply_to].is_a?(String) && !m[:reply_to].empty?
68
+ old_reply_to = m[:reply_to]
69
+ m[:reply_to] = old_reply_to.to_s.split(",").map(&:strip).reject(&:empty?)
70
+ end
71
actionmailer_base.mail(m).deliver!
72
+ m[:to] = old_to
73
+ m[:reply_to] = old_reply_to unless old_reply_to.nil?
74
75
NotificationLog.new(
76
notification_id: m[:notification_id],
0 commit comments