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:
parent
afcfb0e8bd
commit
074efa8dce
1 changed files with 3 additions and 0 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue