From 703a7cf8dd55983761032658a0ac8de65fbda144 Mon Sep 17 00:00:00 2001 From: ChrisWi Date: Mon, 27 Nov 2017 16:23:54 +0100 Subject: [PATCH] =?utf8?q?fehlendes=20BCC(global=5Fbcc)=20in=20CreatePerio?= =?utf8?q?dicInvoices.pm(=5Femail=5Finvoice)=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/BackgroundJob/CreatePeriodicInvoices.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SL/BackgroundJob/CreatePeriodicInvoices.pm b/SL/BackgroundJob/CreatePeriodicInvoices.pm index 851bf3ff2..45a41d012 100644 --- a/SL/BackgroundJob/CreatePeriodicInvoices.pm +++ b/SL/BackgroundJob/CreatePeriodicInvoices.pm @@ -400,10 +400,13 @@ sub _email_invoice { ); } + my $global_bcc = SL::DB::Default->get->global_bcc; + for my $recipient (@recipients) { my $mail = Mailer->new; $mail->{from} = $data->{config}->email_sender || $::lx_office_conf{periodic_invoices}->{email_from}; $mail->{to} = $recipient; + $mail->{bcc} = $global_bcc; $mail->{subject} = $data->{config}->email_subject; $mail->{message} = $data->{config}->email_body; $mail->{attachments} = [{ -- 2.20.1