Overdue Notices: Add a Bcc to messages

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.
This commit is contained in:
Frédéric Demians 2010-01-08 23:04:16 +01:00 committed by Henri-Damien LAURENT
parent afcfb0e8bd
commit 074efa8dce

View file

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