E-Mails als HTML verschicken: Versand wiederkehrender Rechnungen
authorMoritz Bunkus <m.bunkus@linet.de>
Wed, 12 Jan 2022 11:26:11 +0000 (12:26 +0100)
committerMoritz Bunkus <m.bunkus@linet.de>
Wed, 12 Jan 2022 11:30:26 +0000 (12:30 +0100)
SL/BackgroundJob/CreatePeriodicInvoices.pm

index f411353..ab28961 100644 (file)
@@ -489,6 +489,8 @@ sub _email_invoice {
       $mail->{bcc}         = $global_bcc;
       $mail->{subject}     = $data->{config}->email_subject;
       $mail->{message}     = $data->{config}->email_body;
+      $mail->{message}    .= SL::DB::Default->get->signature;
+      $mail->{content_type} = 'text/html';
       $mail->{attachments} = [{
         path     => $pdf_file_name,
         name     => sprintf('%s %s.pdf', $label, $data->{invoice}->invnumber),