@@ -340,9 +340,14 class Mailer < ActionMailer::Base | |||
|
340 | 340 | recipients.delete(@author.mail) if recipients |
|
341 | 341 | cc.delete(@author.mail) if cc |
|
342 | 342 | end |
|
343 | ||
|
344 | notified_users = [recipients, cc].flatten.compact.uniq | |
|
345 | # Rails would log recipients only, not cc and bcc | |
|
346 | mylogger.info "Sending email notification to: #{notified_users.join(', ')}" if mylogger | |
|
347 | ||
|
343 | 348 | # Blind carbon copy recipients |
|
344 | 349 | if Setting.bcc_recipients? |
|
345 | bcc([recipients, cc].flatten.compact.uniq) | |
|
350 | bcc(notified_users) | |
|
346 | 351 | recipients [] |
|
347 | 352 | cc [] |
|
348 | 353 | end |
@@ -393,6 +398,10 class Mailer < ActionMailer::Base | |||
|
393 | 398 | @references_objects ||= [] |
|
394 | 399 | @references_objects << object |
|
395 | 400 | end |
|
401 | ||
|
402 | def mylogger | |
|
403 | RAILS_DEFAULT_LOGGER | |
|
404 | end | |
|
396 | 405 | end |
|
397 | 406 | |
|
398 | 407 | # Patch TMail so that message_id is not overwritten |
General Comments 0
You need to be logged in to leave comments.
Login now