##// END OF EJS Templates
Log info when sending an email notification....
Jean-Philippe Lang -
r3241:a0364deb6a11
parent child
Show More
@@ -340,9 +340,14 class Mailer < ActionMailer::Base
340 recipients.delete(@author.mail) if recipients
340 recipients.delete(@author.mail) if recipients
341 cc.delete(@author.mail) if cc
341 cc.delete(@author.mail) if cc
342 end
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 # Blind carbon copy recipients
348 # Blind carbon copy recipients
344 if Setting.bcc_recipients?
349 if Setting.bcc_recipients?
345 bcc([recipients, cc].flatten.compact.uniq)
350 bcc(notified_users)
346 recipients []
351 recipients []
347 cc []
352 cc []
348 end
353 end
@@ -393,6 +398,10 class Mailer < ActionMailer::Base
393 @references_objects ||= []
398 @references_objects ||= []
394 @references_objects << object
399 @references_objects << object
395 end
400 end
401
402 def mylogger
403 RAILS_DEFAULT_LOGGER
404 end
396 end
405 end
397
406
398 # Patch TMail so that message_id is not overwritten
407 # Patch TMail so that message_id is not overwritten
General Comments 0
You need to be logged in to leave comments. Login now