fehlendes BCC(global_bcc) in CreatePeriodicInvoices.pm(_email_invoice) hinzugefĆ¼gt
authorChrisWi <chris@computersalat.de>
Mon, 27 Nov 2017 15:23:54 +0000 (16:23 +0100)
committerChrisWi <chris@computersalat.de>
Mon, 27 Nov 2017 15:23:54 +0000 (16:23 +0100)
SL/BackgroundJob/CreatePeriodicInvoices.pm

index 851bf3f..45a41d0 100644 (file)
@@ -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} = [{