[Koha-patches] [PATCH 3/4] Overdue Notices: Add a Bcc to messages
Frédéric Demians
f.demians at tamil.fr
Fri Jan 8 23:04:16 CET 2010
If a global syspref OverdueNoticeBcc is present, send overdue notices to
this address. This allow a library to track and gather all outgoing
overdue notices.
---
C4/Letters.pm | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/C4/Letters.pm b/C4/Letters.pm
index e3a30d5..72f4f54 100644
--- a/C4/Letters.pm
+++ b/C4/Letters.pm
@@ -800,6 +800,9 @@ sub _send_message_by_email ($) {
Message => $content,
'content-type' => $message->{'content_type'} || 'text/plain; charset="UTF-8"',
);
+ if ( my $bcc = C4::Context->preference('OverdueNoticeBcc') ) {
+ $sendmail_params{ Bcc } = $bcc;
+ }
my $success = sendmail( %sendmail_params );
--
1.6.4.3
More information about the Koha-patches
mailing list